Formats raise error for other types
p1c2u opened this issue · 0 comments
p1c2u commented
Given:
schema = {"format": "byte"}or
schema = {"format": "binary"}Then:
from openapi_schema_validator import validate
from openapi_schema_validator import OAS30Validator
validate(1.23, schema, cls=OAS30Validator, format_checker=OAS30Validator.FORMAT_CHECKER)Result:
ValidationError: 1.23 is not a 'byte'Expected:
It should ignore other types and pass