Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork136
Open
Description
Actual Behavior
I have this in my api spec:
"properties": {"active": {"type":"boolean"}}
If in my request body I pass:
{"active":"invalid"}
I get aCastError
.
Expected Behavior
If in my request body I pass:
{"active":"invalid"}
I get anInvalidSchemaValue
because the fieldactive
is not of typeboolean
.
Steps to Reproduce
Have a field of typeboolean
. Pass ainvalid
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