You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I fixed the tests locally for me ( see #107 ), I looked into this. The main problem is, that error handling is done via Exceptions and you can only raise one exception at the time.
So, to have multiple errors reported as once, you either need to put multiple errors in one exception or rewrite the error handling. Did you think about this already? If you have a direction you want to go - I am willing to help.
I have a (very rough) failing test to reproduce this here
Given a openapi spec with multiple mandatory fields and a request missing several, the result of
RequestValidator.validate
only shows the first field.To reproduce have a look at this repo, it contains a simple flask app, openapi spec and a curl command to test it.
The gist of it here:
Openapi spec (extract)
Two mandatory fields. When sending only the optional field like this:
I would expect
result.errors
to contain two entries, but there is only one:There is no notion of
brand
missing as well.The text was updated successfully, but these errors were encountered: