We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have this in my api spec:
"properties": { "active": { "type": "boolean" } }
If in my request body I pass:
{ "active": "invalid" }
I get a CastError.
CastError
I get an InvalidSchemaValue because the field active is not of type boolean.
InvalidSchemaValue
active
boolean
Have a field of type boolean. Pass a invalid string in the request body.
invalid
0.19.5
django
No response
No
The text was updated successfully, but these errors were encountered:
If this is the intended behavior, is there any way to get which field is causing the CastError form the CastError instance?
Sorry, something went wrong.
No branches or pull requests
Actual Behavior
I have this in my api spec:
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 fieldactive
is not of typeboolean
.Steps to Reproduce
Have a field of type
boolean
. 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
The text was updated successfully, but these errors were encountered: