-
Notifications
You must be signed in to change notification settings - Fork 4
Standards
Jan Bernitt edited this page Feb 4, 2024
·
7 revisions
This page captures the implemented standards and how this library deviates from the specifications.
Warning
-
Edge case: the empty path means self or root and cannot be used to select an object's property with empty name but the alternative path syntax
{}
({<property>}
for the property with empty name) can be used instead
This library only implements the Vocabulary for Structural Validation part of the specification.
Thereby the validation schema is not provided via a JSON schema document but through annotations on the targeted property methods.
Therefore all validations are declared on the property method they affect and not on their parent (like in the case of required
in the spec).
Warning
-
Divination:
required
anddependentRequired
are not satisfied by a property that is definednull
unless also used withacceptNull()
-
Extension: This library's variant of
dependentRequired
supports a richer sets of conditions and therefore uses a slightly different method of declaration
WIP