-
Notifications
You must be signed in to change notification settings - Fork 94
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
Comments
@Roger13 Is this something you are interested in implementing? |
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 🙌 |
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. |
Just a note @Roger13, your code documentation is fantastic :) |
@triet-truong-tiki Support PR was just merged, let us know if it didn't solve your issue. |
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 typearray
. See example in the docs.The text was updated successfully, but these errors were encountered: