Skip to content

Unexpected validation error with nullable allOf #220

Open
@linkdd

Description

@linkdd

How to reproduce:

from openapi_schema_validator import validate, OAS30Validator, OAS31Validator

schema = {
  "allOf": [
    {"type": "string"},
  ],
  "nullable": True,
}

validate(None, schema, cls=OAS30Validator)
# --> None for not nullable

validate(None, schema, cls=0AS31Validator)
# --> None is not of type 'string'

Seems related to #20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions