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
I have the following response schema, in which available is a required field and the user_name name may or may not be present. All tests pass until in enable strict schema validation config.openapi_strict_schema_validation = true. Now the test fails with the following message Expected response body to match schema: The property '#/' did not contain a required property of 'user_name' in schema. It appears the schema validation is not taking into account the required fields or maybe I am not interpreting the documentation correctly. Can someone help here?
Describe the bug
I have the following response schema, in which available is a required field and the
user_name
name may or may not be present. All tests pass until in enable strict schema validationconfig.openapi_strict_schema_validation = true
. Now the test fails with the following messageExpected response body to match schema: The property '#/' did not contain a required property of 'user_name' in schema
. It appears the schema validation is not taking into account the required fields or maybe I am not interpreting the documentation correctly. Can someone help here?Steps to Test or Reproduce
Expected behavior
I am expecting the tests to still succeed as the user_name field is not required
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Dependency versions
The version of are you using for:
Relates to which version of OAS (OpenAPI Specification)
The text was updated successfully, but these errors were encountered: