python-openapi / openapi-core

Openapi-core is a Python library that adds client-side and server-side support for the OpenAPI v3.0 and OpenAPI v3.1 specification.
BSD 3-Clause "New" or "Revised" License
287 stars 131 forks source link

Validation crashes on BooleanCaster: AttributeError: 'int' object has… #863

Open ryabtsev opened 4 days ago

ryabtsev commented 4 days ago
if value.lower() not in ["false", "true"]:

AttributeError: 'int' object has no attribute 'lower'

codecov[bot] commented 4 days ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.28%. Comparing base (0383a3d) to head (8c9de2a). Report is 18 commits behind head on master.

Files Patch % Lines
openapi_core/casting/schemas/casters.py 0.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #863 +/- ## ======================================= Coverage 90.28% 90.28% ======================================= Files 148 148 Lines 4312 4312 Branches 527 527 ======================================= Hits 3893 3893 Misses 317 317 Partials 102 102 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.