Skip to content

Releases: remoteoss/json-schema-form

v0.7.2-beta.0

06 Nov 19:12
Compare
Choose a tag to compare

0.7.2-beta.0 (2023-11-06)

Bug Fixes
  • select/radio: Support oneOf[].pattern validation (#47) (5a4bb592)

0.7.1-beta.0 (2023-10-31)

Bug Fixes

v0.7.0-beta.0

24 Oct 14:20
Compare
Choose a tag to compare

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

17 Oct 13:49
Compare
Choose a tag to compare

0.6.6-beta.0 (2023-10-17)

Chores
  • github: Add template for issues and pull requests (#45) (621e3338)
Bug Fixes

v0.6.5-beta.0

18 Sep 13:14
Compare
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
Compare
Choose a tag to compare

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

Changes

v0.4.5-beta.0

31 Aug 07:52
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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)