You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This schema mutation is generating some issues at the time of using the schema in other features like generating default values and in tests that are expecting the schema without changes.
I'll be happy to work on this and submit a PR.
Steps to reproduce
Create a schema that doesn't have the nullable property
Use validate(...) function with the instance and the schema
Hi all! First of all thanks for providing this tool. It has helped my projects a lot.
I find an issue related to the schema used for the validation. There is an
_schema.update(...)
in https://github.com/p1c2u/openapi-schema-validator/blob/ab7222af0597ebc672f93cc7f7e089897aba1bec/openapi_schema_validator/validators.py#L68-L72 that is mutating the schema addingnullable: False
property in all the fields that doesn't have it.This schema mutation is generating some issues at the time of using the schema in other features like generating default values and in tests that are expecting the schema without changes.
I'll be happy to work on this and submit a PR.
Steps to reproduce
nullable
propertyvalidate(...)
function with the instance and the schemaExpected Behaviour
Code used as an example for showing the issue
The text was updated successfully, but these errors were encountered: