Hilzu / express-openapi-validate

Express middleware to validate requests based on an OpenAPI 3 document
Apache License 2.0
75 stars 12 forks source link

Response validation does not work properly for nullable arrays #65

Open danyfedorov opened 4 years ago

danyfedorov commented 4 years ago

I have a type: array field in response schema with nullable: true. But I get

Error while validating response: response.body.chain.places.places should be array

Response validation for null works if I change type: array to type: object in schema.