JSON Forms Extended

Specification examples

These 50 example groups share the portable specification. Each folder contains authored JSON, English/Bulgarian translations and a walkthrough. The catalog lists files and required host capabilities.

Example Primary spec section
Additional errors: server and editor 15.6
Additional items pagination: shipping 18.21.1
Additional properties 18.16
AG Grid: portable options and native overrides 18.18.1
Array choices and tokens 18.29
Array controls 18.21
Array detail modes: generated and registered 18.6
Boolean controls 18.19
Button actions 14
Categorization: tabs, stepper, accordion 8.6
Choice controls 18.5
Code editor 18.26
Collection pagination: recruitment 18.21.1
Color control 18.27
Combinators and schema conditions 18.15
Conditional fields: generated and authored layouts Appendix A
Container validation indicator 8.3
Cron control 18.25
Destructive-change confirmation 14.3
Draft-07 metaschema 29
Editor details: objects, mixed types, and cells 18.6
Dynamic playground: preview and configuration forms 11
File control 18.18.4
Group layout 8.1
Input adornments 18.3a
JSON editor: any JSON type 18.20
JSON inference: paste data without a schema 18.20
Kitchen sink: job application 24
Label interpolation 9
Layout sizing 6
Markup labels 10
Mixed control 18.20
Null control 18
Numeric controls: numbers and integers 18.19
Object control 18.16
Password control 18.24
Pre-touch error filtering 15.7
Presentation elements 13
Property pagination: booking 18.21.1
Recursive tree: files and folders Appendix A
Split layout 7.3
String controls 18.18.6
Table row details: recruitment 18.21.1
Template layout: string and native profiles 13.5
Templates and slots: named UI schema reuse 13.4
Temporal controls 18.19
Tree: maximum five levels Appendix A
Tuple control 18.11
Validator profile (Ajv) 15.9

Dynamic playground

The two-form dynamic playground is the single catalog example for $dynamic. It combines basic presentation settings with advanced context, structural and renderer-selection cases. Its External editor and configuration form share host state independently of business data. The static UI schema and host helper remain a basic fallback for hosts without the experimental resolver; they do not implement the advanced cases.

Loading and validation

Pass schema.json, uischema.json and data.json to the form host. Apply config.json and translations.json where present. Create a translator for the active locale and rebuild it when that locale changes.

Registered UI schemas live in portable uischemas.json. Each entry has a uischema and an optional declarative match. A named template omits match and is looked up by uischema.name. A ranked detail entry uses these fields:

The generated JavaScript examples export converts these JSON match objects to JSON Forms tester functions. Other language hosts can evaluate the same fields without JavaScript. Button and template examples offer optional native hooks in host.mjs; string template engines and script evaluation are separate capabilities and permissions.

Invalid initial data demonstrates validation and preservation. The portable package checks schema/UI/config authoring; the renderer adapter suite checks interaction and business-data validation with its chosen validator profile. The negative authoring cases are explicit. The static site displays documentation and assets; it never executes the examples.

Consuming the catalog

@chobantonov/jsonforms-extended-spec/examples exports every catalog entry with its JSON assets and optional UI-schema registry. pnpm generate:examples rebuilds that module, and test/build/pack run generation automatically. Consumers add the spec- ID prefix at registration; no framework-specific per-example list is needed.

English example titles should begin with the feature named by the stable example ID. Add a domain or further explanation after a colon when useful. IDs remain stable when titles are clarified.

Generic JSON and inferred forms

Catalog assets are optional. Preserve omitted schema/data rather than replacing them with {}/null; those values have different meanings.

Conditional fields

See conditional field presentation and graphical authoring. Use options.conditionalFields: true on an object Control or an object-context layout entry (VerticalLayout, HorizontalLayout, Group or Categorization), or use config.jsonformsExtended.conditionalFields as the default. Local false opts out. The entry owns the projection for descendant layouts and Categories at that object boundary. Nested object and array-item boundaries resolve independently. Explicit layouts preserve placement and update conditional required indicators without generating extra controls. See the conditional-fields contract for ownership, validation, examples and platform support limits.