Replies: 2 comments
-
Hi @itsMGA thanks for reporting the issue. Can you send more details? What version do you use? What exact error you get? Can you paste working example? That would help debugging your problem. |
Beta Was this translation helpful? Give feedback.
-
I think the issue is that the default InvalidRequestBody exception message string doesn't include some schema validation context. Arguably, one has to go to some lengths to get a hint about the root cause:
For example, in one case, without the above approach, I get something like this:
While the context includes a much more helpful error message:
Curiously, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Atm, it seems for any schema irregularities, lets say in a massive json, where a integer field is string on response, it only raises this error without the specific field that is causing the problem, and figuring out which field is problematic is tedious, could we add a better schema validations errors messages?
I m using the following approach to validate the response vs the yaml schema:
Beta Was this translation helpful? Give feedback.
All reactions