-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Bug: when API endpoint return list, InvalidMediaTypeValue exception was generated #28
Comments
andyceo
changed the title
Bug: when API return list, InvalidMediaTypeValue exception was generated
Bug: when API endpoint return list, InvalidMediaTypeValue exception was generated
Apr 23, 2018
Some important addition: it seems that this error is generated only if returned result should be a list of objects:
In case when list should be list of strings, error did not generated and validation is ok:
|
@andyceo of corse, you're right. I forgot that JSON text can be an array too (not just object). I will prepare fix. |
This was referenced Apr 23, 2018
Great work! Thank you so much! Can confirm this error is gone. May be new release? 😀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When some API endpoint return list (array) of something, openapi-core generates
InvalidMediaTypeValue
exception:This exception generated no matter list is empty or not.
The text was updated successfully, but these errors were encountered: