Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supprort array with multiple examples #8

Closed
triet-truong-tiki opened this issue Jun 29, 2021 · 5 comments
Closed

Supprort array with multiple examples #8

triet-truong-tiki opened this issue Jun 29, 2021 · 5 comments

Comments

@triet-truong-tiki
Copy link

triet-truong-tiki commented Jun 29, 2021

Currently, when passing a Json array, only the first element is chosen to be one example.
With OpenAPI version 3.0.0. we can pass example array with type array. See example in the docs.

@triet-truong-tiki triet-truong-tiki changed the title Supprort convertint array with multiple examples Supprort array with multiple examples Jun 29, 2021
@LukeHagar
Copy link
Contributor

@Roger13 Is this something you are interested in implementing?
I would be happy to assist if so :)

@Roger13
Copy link
Owner

Roger13 commented Apr 21, 2023

Hey @LukeHagar, this seems like a cool feature! If you feel like implementing it, go for it and I would happily review and approve it. Otherwise let me know and I can try to tackle it on my free time 🙌

@LukeHagar
Copy link
Contributor

I think the main thing here is to add support for the items in the array that are DIFFERENT, so the output spec would ideally include the full range of options, and then an example for each specific return type.

I'll think through this a little bit and take a look at the project, and see what I can contribute.

@LukeHagar
Copy link
Contributor

Just a note @Roger13, your code documentation is fantastic :)

@Roger13
Copy link
Owner

Roger13 commented Aug 14, 2023

@triet-truong-tiki Support PR was just merged, let us know if it didn't solve your issue.

@Roger13 Roger13 closed this as completed Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants