swlinn
6 years agoOccasional Contributor
json schema validation of null values
In reviewing the OPENAPI 3.0 specification at https://swagger.io/docs/specification/data-models/data-types/
null is not allowed as a type value, instead "the nullable
attribute is used as a modifier of the base type", yet the current json schema validation specification https://json-schema.org/latest/json-schema-validation.html#rfc.section.6.1.1 knows nothing about this nullable attribute, but does support "null" as a valid type. Given schema definitions in swagger can be used for schema validations and the specifications contradict each other, are there any plans to allow "null" as a valid type for backward compatibility?