According to the JSON-Schema spec, an anyOf schema combinator enforces one or more of the specified schemas. Currently, in this project anyOf allows for zero or more.
The consequence for this is that the code will have a false positive (accepts without error when it should throw an error) when zero sub-schemas are provided.
According to the JSON-Schema spec, an
anyOfschema combinator enforces one or more of the specified schemas. Currently, in this projectanyOfallows for zero or more.The consequence for this is that the code will have a false positive (accepts without error when it should throw an error) when zero sub-schemas are provided.