swagger-schema-validator
swagger-schema-validator copied to clipboard
nullable property
Hi,
does the validator accepts x-nullable flag for property? If not, is there any possibility to do make property nullable?
No, it's currently not supported. It looks like it's a vendor extension though (prefixed with x-).
It's also not supported in either the JSON Schema Validation specification, nor in json-schema-validator which is used to do the actual validation.
=> I don't think this kind of validation can be done easily.