Skip to content

Commit

Permalink
🎨 Parse body for request result
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianpb committed Nov 8, 2020
1 parent 875ac57 commit 4ea8f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SwaggerUISvelte.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
{#if Object.keys(responses[method['id']].body).length === 0 && responses[method['id']].body.constructor === Object}
<p> Body:
</p>
{JSON.stringify(responses[method['id']].body, null, 2)}
{JSON.stringify(responses[method['id']].json(), null, 2)}
{/if}
</div>
</div>
Expand Down

0 comments on commit 4ea8f90

Please sign in to comment.