You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full API additions now supported from 0.6.5 onwards.
New custom JSON Schema keyword x-jsf-logic added to support cross-field validations. Built on top of JsonLogic.
x-jsf-logic can contain:
validations - JsonLogic rules that validate fields and return booleans
computedValues - JsonLogic rules that compute dynamic values
allOf.if/then/else - Conditional logic using validations and computedValues
New property x-jsf-logic-validations added to individual schema properties. Lists the validation names that should run on that property.
New property x-jsf-logic-computedAttrs added to individual schema properties. Allows computed values to be used for attributes like title, description, const, etc.
Computed values and validations defined in x-jsf-logic can reference schema properties using vars and any syntax supported from JsonLogic.
Conditional logic blocks allow selectively requiring fields or applying attributes based on validations/computed values.
While docs are underway, you can read examples from all the tests along with the sample schemas.
In short: x-jsf-logic is added to support complex conditional cross-field validations. Properties like x-jsf-logic-validations allow hooking those up to individual fields.