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
and when I test a request with data that follows requestB schema I'm getting this error:
{
"errors": [
{
"title": "Value {'errors': [{'title': \"Value {} not valid for schema of type any: (<ValidationError: '{} is not valid under any of the given schemas'>,)\", 'status': 400, 'type': \"<class 'openapi_core.validation.schemas.exceptions.InvalidSchemaValue'>\"}]} not valid for schema of type any: (<ValidationError: '{\\'errors\\': [{\\'title\\': \"Value {} not valid for schema of type any: (<ValidationError: \\'{} is not valid under any of the given schemas\\'>,)\", \\'status\\': 400, \\'type\\': \"<class \\'openapi_core.validation.schemas.exceptions.InvalidSchemaValue\\'>\"}]} is not valid under any of the given schemas'>,)",
"status": 400,
"type": "<class 'openapi_core.validation.schemas.exceptions.InvalidSchemaValue'>",
}
]
}
However, when I change the schema to have only one requestBody schema, I get correct results (requestB schema accepts the payload and reuqestA schema returns a list of wrong fields).
Expected Behavior
Validator should validate request trying according to one of the provided request schemas.
Steps to Reproduce
Described in actual behavior
OpenAPI Core Version
0.19.4
OpenAPI Core Integration
django
Affected Area(s)
schema, validation
References
No response
Anything else we need to know?
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered:
Actual Behavior
I have this schema:
and when I test a request with data that follows
requestB
schema I'm getting this error:However, when I change the schema to have only one
requestBody
schema, I get correct results (requestB
schema accepts the payload andreuqestA
schema returns a list of wrong fields).Expected Behavior
Validator should validate request trying according to one of the provided request schemas.
Steps to Reproduce
Described in actual behavior
OpenAPI Core Version
0.19.4
OpenAPI Core Integration
django
Affected Area(s)
schema, validation
References
No response
Anything else we need to know?
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: