Skip to content

Releases: remoteoss/json-schema-form

v0.6.5-beta.0

18 Sep 13:14

Choose a tag to compare

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.

v0.5.0-beta.0

12 Sep 07:53

Choose a tag to compare

0.5.0-beta.0 (2023-09-12)

Changes

v0.4.5-beta.0

31 Aug 07:52

Choose a tag to compare

Changes
  • Allow validation of consts to support single values (#34) (bf07870d)

v0.4.3-beta.0

09 Aug 08:46

Choose a tag to compare

0.4.3-beta.0 (2023-08-09)

Bug fixes
  • conditions: Validate a deeply nested if (e.g. checking an object with a number property) in an if property now doesn't break the form. (#33) (e34cfcc)

v0.4.2-beta.0

20 Jul 11:16

Choose a tag to compare

0.4.2-beta.0 (2023-07-20)

Bug Fixes
  • date: Validate based on minDate and maxDate (#30) (01c0143e)

v0.4.1-beta.0

03 Jul 23:21

Choose a tag to compare

0.4.1-beta.0 (2023-07-03)

Bug Fixes
  • fieldset: support root conditionals for fieldsets (#23) (65d87b3a)
  • select/radio: Accept just the values in options (plus '' and null for backward-compatibility) (#18) (37501d2d)

v0.4.0-beta.0

22 Jun 10:05

Choose a tag to compare

0.4.0-beta.0 (2023-06-22)

New Features

BREAKING CHANGES:

  • Radio/Select: In each option, spread x-jsf-presentation value to option root (#17) (367688c2)

v0.3.0-beta.0

22 Jun 10:05

Choose a tag to compare

0.3.0-beta.0 (2023-06-21)

Fixes
  • Text: Fix validation to only accept strings (#12) (00017c0)
Chores

v0.2.0-beta.0

22 Jun 10:05

Choose a tag to compare

0.2.0-beta.0 (2023-06-20)

New Features
  • Add Typescript declarations to the library (2404188c)
Fixes
Chores
  • Add json-schema-form meta schema (#6) (414a5fe2)

v0.1.0-beta.0

18 May 11:40

Choose a tag to compare

0.1.0-beta.0 (2023-05-18)

New Features