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 modif...
- 6 years ago
OpenAPI 3 doesn't use JSON Schema directly, but uses an "extended subset of JSON Schema". As such, some difference exist, and the behavior of 'null' and 'nullable' is an example for that. Also, OAS3 is not based on the latest JSON Schema, but an older draft version (that's known as 00 or 05).
Any changes to the specification are driven by the OpenAPI Initiative and not SmartBear. You can check the work around it at https://github.com/OAI/OpenAPI-Specification/.