### Actual Behavior I have this in my api spec: ```json "properties": { "active": { "type": "boolean" } } ``` If in my request body I pass: ```json { "active": "invalid" } ``` I get a `CastError`. ### Expected Behavior If in my request body I pass: ```json { "active": "invalid" } ``` 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
Activity
afonsocraposo commentedon Jun 5, 2025
If this is the intended behavior, is there any way to get which field is causing the
CastErrorform theCastErrorinstance?p1c2u commentedon Dec 18, 2025
This should be fixed with #1075