swagger-schema-validator icon indicating copy to clipboard operation
swagger-schema-validator copied to clipboard

nullable property

Open s16508pjwstk opened this issue 5 years ago • 1 comments

Hi,

does the validator accepts x-nullable flag for property? If not, is there any possibility to do make property nullable?

s16508pjwstk avatar Oct 16 '20 11:10 s16508pjwstk

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.

bjansen avatar Oct 16 '20 11:10 bjansen