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.
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:
rank: score returned when all conditions match (otherwise -1).schemaPointer: JSON Pointer into the candidate data schema.equalsorexists: true: compare the pointer value or require it to exist.schemaPathandnotSchemaPath: optional exact path filters.
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
- JSON editor: any JSON type starts without data and uses an explicit
{}schema. - JSON inference: paste data without a schema omits schema and data; apply JSON in the Data editor to generate a form.
Catalog assets are optional. Preserve omitted schema/data rather than replacing them with {}/null; those values have different meanings.
-
Array detail modes: default, generated, registered, fallback, and inline layouts.
-
Editor details: object generation, per-type mixed layouts, and registered cell editors.
-
Templates and slots: named registry lookup, fallback and nested overrides.
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.