openapi2jsonschema icon indicating copy to clipboard operation
openapi2jsonschema copied to clipboard

Add support for nullable OpenAPI fields

Open vne opened this issue 4 years ago • 1 comments

If nullable attribute of a field in OpenAPI spec is set, add 'null' to the list of types in JSON schema (and turn type into list if it's a primitive type)

vne avatar Oct 20 '21 22:10 vne

I'm collecting fixes in https://github.com/larsks/openapi2jsonschema. I've merged this patch into that repository.

larsks avatar Mar 30 '23 22:03 larsks