Replies: 2 comments 6 replies
-
Hey there. Minimizing this to remove the web requests and just leaving a simple call to |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok, I have made variables of the response and the schema taken from the openapi spec, and this still passes saying the response is valid
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have taken an openapi json file and am loading that to do schema validation against some api's...here is my sample test code -
Currently my endpoint is returning an error (intentially)
This response is being passed into
response_data_api
andresponse_schema
looks like -I can see the schema says it shouled be an object with keys -
ErrorCode = int64
VehicleTripPeriodDistances = array
Where the current response is
ErrorCode = int64
Result = string
But there is no ValidationError being thrown, and I don't understand why, As I can see it fail for other paths of the schema I have tried..
Hope someone can enlighten me on what i am missing...
Thanks
Beta Was this translation helpful? Give feedback.
All reactions