widdershins
widdershins copied to clipboard
Support multiple `requestBody` examples
Similar to how multiple response examples are already supported in Widdershins, it would great if it also support multiple requestBody examples.
Here's an example yaml:
/foo:
post:
tags:
- Foo
parameters: []
requestBody:
content:
application/json:
schema:
type: object
properties:
topic:
type: string
examples:
oneRequest:
description: one
value:
topic: one
twoRequest:
description: two
value:
topic: two
responses:
'200':
description: success
content:
application/json:
schema:
type: object
properties:
topic:
type: string
examples:
oneResponse:
description: one
value:
topic: one
twoResponse:
description: two
value:
topic: two
And what it looks like currently:
It'd be super useful to have this feature 👍
Hi @MikeRalphson,
I pushed https://github.com/Mermade/widdershins/pull/401 :) Would you have a look ?
Hi @MikeRalphson would you accept a PR for this issue? I am planning to continue on the work from @sirinn to get it included.
I went ahead and opened a PR. Please let me know what we can do to get this merged #530. Thanks!