for-GET / jesse

jesse (JSon Schema Erlang) is an implementation of a JSON Schema validator for Erlang.
https://github.com/for-get/jesse
Apache License 2.0
124 stars 64 forks source link

Add support for nullable spec #114

Closed meox closed 2 years ago

meox commented 2 years ago

can you merge this one?

andreineculau commented 2 years ago

Ciao! Where is this "nullable" defined in the JSON Schema standard? I cannot find it. AFAIK nullable fields are defined as "type": ["string", "null"] or via oneOf. See https://json-schema.org/draft/2020-12/json-schema-core.html#rfc.section.7.6.1 Closing, but let me know if I've missed something.