Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nullable property #16

Open
s16508pjwstk opened this issue Oct 16, 2020 · 1 comment
Open

nullable property #16

s16508pjwstk opened this issue Oct 16, 2020 · 1 comment
Labels
question Further information is requested

Comments

@s16508pjwstk
Copy link

Hi,

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

@bjansen
Copy link
Owner

bjansen commented Oct 16, 2020

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 bjansen added the question Further information is requested label Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants