Actual Behavior
I have this in my api spec:
"properties": {
"active": {
"type": "boolean"
}
}
If in my request body I pass:
I get a CastError.
Expected Behavior
If in my request body I pass:
I get an InvalidSchemaValue because the field active is not of type boolean.
Steps to Reproduce
Have a field of type boolean. Pass a invalid string in the request body.
OpenAPI Core Version
0.19.5
OpenAPI Core Integration
django
Affected Area(s)
No response
References
No response
Anything else we need to know?
No response
Would you like to implement a fix?
No
Actual Behavior
I have this in my api spec:
If in my request body I pass:
{ "active": "invalid" }I get a
CastError.Expected Behavior
If in my request body I pass:
{ "active": "invalid" }I get an
InvalidSchemaValuebecause the fieldactiveis not of typeboolean.Steps to Reproduce
Have a field of type
boolean. Pass ainvalidstring in the request body.OpenAPI Core Version
0.19.5
OpenAPI Core Integration
django
Affected Area(s)
No response
References
No response
Anything else we need to know?
No response
Would you like to implement a fix?
No