Releases: remoteoss/json-schema-form
v0.7.2-beta.0
v0.7.0-beta.0
0.7.0-beta.0 (2023-10-23)
Chores
BREAKING CHANGES:
- Description/Extra/Statement fields: We have removed the sorrounding spans that we output in these fields (#17) (6257533)
-description: '<span class="jsf-description">Write in <b>hh:ss</b> format</span>',
+description: 'Write in <b>hh:ss</b> format',
v0.6.6-beta.0
v0.6.5-beta.0
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 booleanscomputedValues
- JsonLogic rules that compute dynamic valuesallOf.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 liketitle
,description
,const
, etc. -
Computed values and validations defined in
x-jsf-logic
can reference schema properties usingvars
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.