- edited description
The OpenAPI 3.0 specification allows the definition of “nullable” anyOf Schemas like the following:
Foo:
type: object
properties:
nullableProperty:
nullable: true
anyOf:
- type: string
However swagger-request-validator does not seem to honor the nullable flag in this situation. The following JSON will incorrectly be marked as invalid:
{"nullableProperty" : null}
I have attached a complete unit test to reproduce this issue.