Renderer Set and Demo Application Specification
This is the maintained renderer and demo acceptance guide. It complements spec.md, especially §30, and the renderer selection guide. The authoring-schema audit explains the archived sources. Portable data and option semantics are governed by spec.md when wording differs.
For implementation traps and cross-platform acceptance checks, also read the implementation guide and pitfalls.
1. Purpose
This document is the implementation and acceptance specification for every renderer set and renderer demo in an implementation. It is intended to make a new UI-library integration predictable: the JSON Forms behavior and demo features remain consistent, while the visual language and component APIs come from the selected UI library.
The specification has two distinct contracts:
- The demo application contract defines the common application structure, navigation, editors, settings, responsive behavior, and Framework-native/Web Component switching.
- The renderer contract defines how JSON Schema, UI Schema, data, validation, and configuration must map to controls from a UI library.
The UI library is the source of truth for component appearance, interaction, and API usage. Existing JSON Forms demos can inform feature coverage and information architecture; they are not a reason to replace native library components with generic imitations.
2. Normative language
The terms MUST, MUST NOT, SHOULD, and MAY describe requirements:
- MUST: required for acceptance.
- MUST NOT: prohibited.
- SHOULD: expected unless a documented UI-library limitation prevents it.
- MAY: optional behavior.
3. Core principles
3.1 UI-library fidelity
- Renderers MUST use the actual components and documented composition patterns of the selected UI library.
- Components copied or generated from an upstream component repository, such as Shadcn components, MUST remain recognizable upstream components.
- A renderer set MUST NOT substitute native HTML controls or a simplified internal component set when the UI library provides the corresponding component. This includes date, time, date-time, select, dialog, popover, tabs, buttons, checkboxes, and similar controls.
- Thin integration code is allowed where JSON Forms and the UI library have different event or value contracts. Such integration belongs in the renderer that needs it or in a clearly named utility. It MUST NOT become a parallel, simplified UI component library.
- The UI library's accessibility model, focus behavior, keyboard behavior, variants, sizing, theming, and portal behavior SHOULD be preserved.
3.2 File ownership and structure
- Keep renderer and reusable component responsibilities independently identifiable and reviewable. A separate file per renderer/component is the recommended web implementation convention, not a portable acceptance rule.
- Do not obscure unrelated implementations in registry or export code. Native ports may use their platform's normal module and source-file conventions.
- Shared behavior MAY be placed in focused utility files when it is genuinely shared and has tests.
3.3 Behavioral parity
- All renderer sets MUST interpret the same schema, UI Schema, configuration, and data with equivalent semantics.
- Visual presentation SHOULD follow the UI library, but switching renderer sets MUST NOT change the data shape.
- Rendering MUST NOT initialize a value with the wrong JSON type. For example,
an
allOfobject MUST NOT be treated as an array merely because it has no directtypeproperty. - Framework-native and Web Component modes MUST render the same renderer registry and expose the same form behavior.
4. Workspace architecture
Keep the base renderer registry, optional extended registry, demo application, and optional browser Web Component independently consumable. Share framework behavior below UI-family adapters, and share demo state separately from rendering. The names and directory layout are implementation choices.
- Each UI library MUST have its own independently built demo.
- An aggregate examples application MUST link to or embed the demos rather than combining every UI library into one bundle.
- Renderer packages MUST remain usable without the demo application.
- Extended renderers MUST remain an optional registry.
- Browser Web Components MUST reuse the native host's renderer and cell registries.
5. Tooling contract
Use the framework's supported build, type-check, test, development-server and preview tools. Document reproducible commands and keep dependency lockfiles current. A renderer's integration tests MUST exercise its public registries. Vite, Vitest and pnpm are optional tooling choices, not requirements for other frameworks or languages.
6. Demo application layout
6.1 Desktop information architecture
The desktop application follows this structure:
┌──────────────────────────────────────────────────────────────────────┐
│ Menu Library logo + JSON Forms <UI> <framework> View/tools/settings │
├───────────────┬──────────────────────────────────────────────────────┤
│ Search │ Example title │
│ │ ┌──────────────────────────────────────────────────┐ │
│ Example list │ │ Demo and Data | Schema | UI Schema | ... Config │ │
│ │ ├──────────────────────────────────────────────────┤ │
│ Active item │ │ JSON Forms Actions │ │
│ highlighted │ │ ┌────────────────────────┬─────────────────────┐ │ │
│ │ │ │ Demo form │ Data editor │ │ │
│ Scrolls │ │ │ │ Reload / Apply │ │ │
│ independently │ │ └────────────────────────┴─────────────────────┘ │ │
│ │ └──────────────────────────────────────────────────┘ │
└───────────────┴──────────────────────────────────────────────────────┘
- The header MUST remain fixed at the top.
- The header's left group MUST contain the sidebar toggle, library mark, and demo name. Activating the brand returns to the demo home page.
- The header's right group MUST contain compact, accessible tool actions.
- The example sidebar MUST begin below the header, remain fixed on desktop, and scroll independently from the workspace.
- Opening the sidebar MUST shift the desktop workspace rather than cover it.
- The workspace MUST begin below the fixed header and provide enough padding that content never sits underneath it.
- The current example title MUST appear above the tabbed work area.
- The tabbed work area MUST be visually contained using the UI library's card, panel, surface, or equivalent component.
6.2 Header tools
The header MUST provide, in this logical order:
- Form-only/full-UI toggle.
- Framework-native/Web Component toggle when a Web Component is available.
- Repository link.
- Theme customization/settings entry points.
The Framework-native/Web Component toggle is a top-level application action. It MUST NOT also appear in the settings panel. It MUST use the Web Components logo rather than a generic package, cube, or framework icon. The logo's foreground MUST remain legible in light and dark themes, and it SHOULD use the same Y-axis spin animation while Web Component mode is active. Reduced-motion preferences MUST disable that animation.
Each icon-only action MUST have an accessible name, tooltip or title, pressed state where applicable, and visible keyboard focus.
6.3 Sidebar
- The sidebar MUST contain a search field above the example list.
- Search MUST filter examples by label without changing the active form data.
- The active example MUST be visually distinct.
- Long labels MUST wrap rather than overflow.
- Selecting an example MUST update the URL hash so examples are deep-linkable.
- An empty search result MUST display a useful message.
- The menu button MUST be able to hide and restore the sidebar.
6.4 Responsive behavior
- On narrow screens, the sidebar MUST become an overlay/drawer with a dismissible backdrop.
- The main workspace MUST use the full viewport width when the sidebar is closed or when form-only mode is active.
- Header branding MAY hide its text on very narrow screens, but the library mark and accessible name MUST remain.
- Tab lists MAY scroll horizontally; tab labels MUST NOT be compressed into unreadable text.
- The side-by-side demo/data layout MUST stack when the available width cannot support both panes.
- Forms MUST not introduce page-level horizontal scrolling at supported viewport widths.
7. Demo views and behavior
7.1 Home view
The home view MUST include:
- the library logo or mark;
- a clear
JSON Forms <framework> <UI library>title; - the
More Forms. Less Code.tagline; - an action that opens the first example.
Logos MUST remain legible in light and dark mode. SVGs that use
currentColor SHOULD be rendered inline when theme inheritance is required.
7.2 Example workspace
The workspace MUST expose these tabs:
- Demo or Demo and Data
- Schema
- UI Schema
- UI Schemas
- Internationalization
- Config
- Data, when Data is not already visible beside the demo
The Demo tab label MUST display the current validation error count when the count is greater than zero.
Example-specific actions MUST appear on the same row as the JSON Forms
heading and MUST use the selected UI library's buttons.
7.3 Demo and Data layout
The preferred desktop layout starts at approximately 75% form and 25% data editor:
- The form is on the inline-start side.
- The live data editor is on the inline-end side.
- The two panes MUST use the selected UI library's splitter or resizable-panel component. A fixed grid is not sufficient when both panes are visible.
- The splitter MUST let the user drag the divider to give either the form or the data editor the larger visible area.
- The splitter SHOULD start at 75% form and 25% data, and each pane SHOULD keep a usable minimum size rather than allowing its content to disappear.
- The resize handle MUST be visually discoverable and keyboard accessible when the UI library supports keyboard resizing.
- The panes are separated by the splitter's library-native handle and styling.
- RTL mode MUST reverse the inline direction naturally.
- At narrow viewport widths the panes MAY stack vertically. In the stacked layout the resize handle MUST be removed unless a vertical splitter remains useful and accessible.
- The data editor MUST provide reload and apply actions.
- Reload and Apply MUST use the selected UI library's icon buttons. Each action MUST provide a tooltip and an accessible name.
- Editing JSON does not update the form until Apply is activated.
- Reload restores the editor text from the selected example's original data; it does not change the active form until Apply is activated.
- Form changes MUST update the data model and validation count.
7.4 JSON editors
- Schema, UI Schema, UI Schemas, Internationalization, Config, and Data MUST use a JSON-aware editor.
- Editors MUST follow the active light/dark mode.
- Every editor view MUST provide Reload and Apply behavior.
- Invalid JSON MUST not silently replace the current working model. The demo SHOULD show a useful parse error.
- Applying one editor MUST update only the corresponding JSON Forms property.
7.5 Form-only mode
- Form-only mode MUST hide demo chrome that is not part of the rendered form, including the sidebar, example title, tabs, data pane, and settings panel.
- The form MUST retain the selected theme, direction, locale, validation mode, configuration, provider settings, and current data.
- Leaving form-only mode MUST restore the previous example and state.
8. Settings specification
Settings MUST appear in an end-side drawer or equivalent UI-library overlay. The overlay MUST have a heading, concise explanation, close action, scrollable content, focus management, and a dismissible backdrop.
8.1 Common settings
Every demo MUST support:
| Setting | Values/default | Required behavior |
|---|---|---|
| Mode | System, Light, Dark; default System | System follows prefers-color-scheme; editors and forms update immediately. |
| Direction | LTR, RTL; default LTR | Applies to shell, form, overlays, and Web Component. |
| Locale | English, German, Bulgarian, browser locale | Updates JSON Forms internationalization without resetting data. |
| Validation | Validate and show, Validate and hide, No validation | Maps directly to JSON Forms validation modes. |
| Demo Layout | Default, Demo and Data | Changes presentation only. |
| Restrict | Default on | Enforces schema length, array size, and related restrictions. |
| Read-only | Default off | Disables mutation while preserving readable values and navigation. |
The common options section MUST also expose:
- Hide Required Asterisk
- Show Unfocused Description
- Collapse New Array Items
- Hide Array Summary Validation
- Collapse Arrays Initially
- Hide Array Item Avatar
- Enable Filter Errors Before Touch
- Filter Error Keywords Before Touch
- Allow Additional Properties By Default
Option names and descriptions SHOULD remain consistent across demos.
8.2 UI-library settings
Each renderer demo MAY add provider or theme settings specific to its library, for example accent color, density, component size, border radius, or theme algorithm.
- These settings MUST use the UI library's supported provider or token API.
- They MUST affect Framework-native and Web Component views equivalently.
- Defaults MUST produce a recognizable standard theme for that library.
- Customization MUST not alter schema semantics or data.
8.3 Settings persistence
The demo host MUST remember the settings that describe a user's durable visual preferences:
- mode (
system,light, ordark); - locale;
- demo layout (
defaultordemo-and-data); and - renderer-specific provider or design-system settings.
Persistence MUST be exposed through a small platform storage abstraction and
MUST NOT be coupled directly to a browser API inside renderer components. The
web demo uses localStorage by default. Android, iOS, desktop, and other hosts
MAY provide their platform preference store instead; such hosts are not
required or expected to emulate localStorage. Both synchronous web storage
and asynchronous native storage adapters SHOULD be supported. Missing,
blocked, unavailable, or corrupt storage MUST fall back to defaults without
preventing the form from rendering.
Direction, validation mode, and the generic JSON Forms configuration toggles are session settings and are not persisted by default. Read-only state and top-level view state are represented in the URL as described below. A host MAY persist additional settings only when its product requirements explicitly call for that behavior.
Storage keys MUST be scoped by renderer demo so UI-library-specific settings cannot leak into another renderer set. Stored data SHOULD carry a schema version so future implementations can migrate or safely discard old values.
8.4 URL query contract
Demo URLs MUST support these query parameters:
| Parameter | Values | Default/behavior |
|---|---|---|
read-only |
true, false |
false; controls JSON Forms read-only mode. |
form-only |
true, false |
false; switches the top-level form-only view. |
active-tab |
demo, schema, uiSchema, uiSchemas, internationalization, config, data |
demo; selects the workspace tab. |
use-webcomponent |
true, false |
false; selects the Web Component host when one is available. |
drawer |
true, false |
Viewport-dependent; controls whether the example drawer is open. |
For compatibility with different routers, implementations MUST read supported parameters from either the normal URL query or the query portion following the example hash. Hash-query values take precedence when both are present. Web demos that use the hash as the example route SHOULD write the canonical form:
/#mixed?form-only=true&active-tab=schema
Writers SHOULD omit values equal to their defaults, preserve unrelated query
parameters, and normalize a supported parameter to one location when the user
changes it. Only the literal value true enables a Boolean parameter. Browser
back/forward navigation and direct URL loading MUST update the corresponding
view without resetting the selected example or its data.
Example hash routes MUST be percent-encoded when written and decoded before
matching an example name. Labels or legacy example identifiers containing
spaces or other reserved URL characters MUST therefore open on the first
selection and remain selected after hashchange or browser navigation.
9. Renderer behavior contract
9.1 Common control anatomy
Every control SHOULD use this visual order:
- Label and required indicator.
- Input/control.
- Description or helper text.
- Validation message.
Requirements:
- Labels MUST be programmatically associated with controls.
- Required indicators MUST reflect JSON Schema requirements and respect
hideRequiredAsterisk. - Descriptions MUST use UI Schema or schema descriptions and respect the unfocused-description option.
- Validation messages MUST be associated through
aria-describedbyor the UI library's equivalent accessibility API. - Invalid, focused, disabled, and read-only states MUST use the UI library's standard styling.
- Hidden controls MUST not render.
- Disabled controls MUST not emit changes.
- Clearing an optional value SHOULD produce
undefinedunless JSON Forms or the schema requires a different representation. - Renderers MUST call
handleChangewith the correct JSON Forms path and value type.
9.1.1 Clear actions
Editable controls that can hold a scalar or textual value SHOULD provide a
compact icon-only Clear value action. This includes, where applicable, text
inputs, textareas, password and masked inputs, number and integer inputs,
date/time inputs, editable comboboxes, enum dropdowns, one-of enum dropdowns,
full oneOf selectors, and mixed-type selectors.
- Clearability SHOULD be enabled by default and MAY be disabled with the
applied
clearableoption or an equivalent documented renderer option. - The Clear value action MUST exist only when the control currently has data. Use the editor's storage/empty-value contract: permitted empty-string or null choices remain selected values. False and zero MUST still count as data.
- The icon SHOULD be visually revealed when the control or its wrapper has focus, when its selection UI is active, or when the pointer hovers over it. It SHOULD remain hidden at other times so it does not compete with the primary input. Touch and keyboard users MUST still be able to reveal and activate it without hover.
- The action MUST use the UI library's recognizable clear/close icon, have an
accessible name such as
Clear value, and preserve visible keyboard focus. - Activating Clear MUST NOT accidentally open a dropdown, submit the form, or move focus away before the clear operation is committed. Inputs SHOULD reserve sufficient inline-end padding so the icon never covers their value or a dropdown indicator.
- Disabled and read-only controls MUST NOT expose an active Clear action.
- Clearing normally emits
undefined, removing an optional object property. A renderer MAY use a type-specific empty value only when required by the established JSON Forms behavior, for example to preserve a dynamic property key while clearing its value. - A required control MAY still be cleared unless the selected UI library has a documented restriction. The resulting empty value MUST expose the normal required validation state; the renderer MUST NOT immediately restore the previous value or silently choose a replacement.
9.2 Primitive controls
The base renderer set MUST cover:
- string and multiline string;
- number and integer;
- boolean checkbox;
- boolean toggle when selected by UI Schema options;
- enum select;
- radio group where supported/configured;
- slider where supported/configured;
- labels and static text;
- null and mixed types, when included in the renderer set.
Numeric controls MUST preserve numeric values rather than returning strings. Integer controls MUST prevent or reject fractional values according to the UI library and JSON Forms conventions.
Enum controls MUST preserve the original option values, including numeric and boolean enum values, and MUST display translated labels when available.
Selection controls MUST represent an absent value as genuinely unselected:
- When data is absent or has the renderer's established no-selection value, the trigger MUST show a placeholder and MUST NOT preselect the first item. A permitted empty-string or null choice MUST remain selected, distinct from absence; a mixed null value likewise selects the null type.
- Merely rendering or opening a dropdown MUST NOT initialize form data.
- A schema or application default MAY appear selected only after that default has actually been applied to the JSON Forms data model.
- Required state MUST NOT cause implicit selection. An unselected required dropdown remains unselected and displays its required validation error.
- These rules apply to enum and one-of enum controls, full
oneOfor variant selectors, mixed-type selectors, and other single-selection controls.
9.3 Date and time controls
- Date, time, and date-time formats MUST use the UI library's real picker components when they exist.
- Native
input[type=date],input[type=time], orinput[type=datetime-local]MUST NOT be used merely as a shortcut when the UI library provides a picker. - Date values default to
YYYY-MM-DDstrings; an explicit save format follows §9.3.1 without implicit conversion on mount or locale changes. - Time values MUST retain the precision required by the schema/example.
- Date-time values MUST use the project's established ISO representation.
- Picker popovers MUST be keyboard accessible and correctly themed.
- Clear actions MUST be available for optional values.
- Date-time controls SHOULD present date and time selection in one coherent popover or workflow.
9.3.1 Display and storage formats
Date, time, and date-time controls MUST support distinct display and storage formats supplied through the applied UI Schema options. The established option names are:
| Schema format | Display option | Storage option |
|---|---|---|
date |
dateFormat |
dateSaveFormat |
time |
timeFormat |
timeSaveFormat |
date-time |
dateTimeFormat |
dateTimeSaveFormat |
The display option controls how the value appears in the input and picker. The
storage option controls the string emitted to JSON Forms through
handleChange. For example, a date may be displayed as MM/DD/YYYY while the
data model stores YYYY-MM-DD.
- Renderers MUST read these values from the applied UI Schema options, including the renderer configuration merged by JSON Forms.
- A configured display format MUST be used for visible text, placeholder or input parsing, picker precision, and 12/24-hour presentation where relevant.
- A configured save format MUST be used whenever picker selection or valid typed input updates the data model.
- Existing data MUST be parsed using at least the configured save format, the configured display format, and the canonical JSON Schema formats supported by the renderer. A renderer MUST therefore display previously stored values even when display and save formats differ.
- Locale-specific display formats MAY expand localized tokens, but changing the locale MUST NOT silently rewrite the stored value or change its storage format.
- Seconds, fractional seconds, AM/PM, and time-zone offsets MUST be preserved when required by the configured formats. A renderer MUST NOT introduce an unintended local/UTC conversion.
- Incomplete or invalid typed input MUST NOT be serialized as a different valid value. The renderer SHOULD retain the editable text or expose validation feedback until the value can be parsed according to the display format.
- Clearing an optional control MUST use the renderer set's established JSON Forms clear value and MUST NOT emit a formatted representation of an invalid date.
- When no save format is configured, the renderer MUST use the JSON Forms default storage format for the corresponding schema format. When no display format is configured, it SHOULD use the UI library's locale-aware default or the renderer set's documented default without changing storage semantics.
- Controls and cells for the same schema format MUST implement equivalent parsing and serialization behavior.
- Framework-native and Web Component modes MUST honor the same display and save options.
The renderer set MUST document which formatting token syntax it accepts. If the UI library uses a different token system, the integration layer MUST map the established UI Schema option values consistently or document the supported syntax without changing the option names.
9.4 Objects and groups
- Object properties MUST render as object fields, never as an array or generic mixed-type selector.
- Preserve explicit and registered detail layouts. Generated root details may use VerticalLayout; generated nested details may use Group. Keep the single object boundary and title described in the object layout contract.
- A named nested object SHOULD have a visible group/card title.
- Root objects SHOULD avoid redundant outer titles and borders.
- Object controls MUST support dynamic properties governed by
properties,patternProperties,additionalProperties, andpropertyNames.
9.5 Arrays
- Arrays MUST display a clear title and add action.
- Arrays whose item schema is unrestricted (
items: true) MUST render through the normal array presentation. Each added or existing item MUST dispatch to the mixed-type renderer; the array control itself MUST NOT report that no applicable renderer exists. This includes JSON Schemaexamplesarrays. - Array items MUST have stable paths and keys.
- Add MUST initialize an item of the correct type under §18.7. It may need user completion; initialization is not a guarantee of full schema validity.
- Remove MUST target the intended indexes and respect
minItemswhenrestrictis enabled. - Add MUST respect
maxItemswhenrestrictis enabled. - Object-array items SHOULD expose a useful label when an element-label property is configured.
- Detail, list-with-detail, table/grid, and primitive-array presentations MUST preserve identical array data semantics.
- A
ListWithDetailUI Schema MUST support primitive item schemas as well as object item schemas; it MUST NOT fall through to a missing-renderer message. Primitive list-with-detail arrays SHOULD use the renderer set's normal library-native accordion/detail-item presentation, with an expandable row and regular dispatched value control for each item. - Collapse and summary-validation options MUST behave consistently.
9.6 Dynamic object properties
Dynamic object-property support includes patternProperties and
propertyNames; it is not limited to the additionalProperties keyword. The
renderer MUST provide:
- a
Property Nameinput and compact add icon/action; - inline, translated feedback for invalid or duplicate name drafts, following
the empty-name feedback policy;
a schema-permitted empty name is allowed when
allowEmptyPropertyNamesis enabled; - one rendered value control per dynamic property;
- compact rename and delete icon actions aligned with the property;
- a UI-library dialog for rename confirmation;
- restrictions for
required,minProperties,maxProperties, read-only state, andadditionalProperties: false; - support for
allowAdditionalPropertiesIfMissing.
Actions SHOULD use recognizable add, edit, and delete icons rather than large text buttons when the UI library's pattern is icon-based.
9.6.1 Property-name validation
- The
propertyNamesschema MUST validate names entered by both Add and Rename. The complete schema MUST be honored, not only itspattern; this includes constraints such asminLength,maxLength,format,enum,const, and composed schemas when supported by the configured AJV. - A
$refinpropertyNamesMUST resolve against the root schema. - Property-name validation MUST reuse the parent JSON Forms AJV instance so custom formats, keywords, draft behavior, and AJV options remain consistent.
- A name already present in the object MUST be rejected, except that a Rename operation may retain its current name until a different name is committed.
- Schema-permitted literal names, including dots and enabled empty names, MUST use safe segment-based updates or isolated editors under the literal-key contract. Ordinary Controls that cannot address a name safely must report that limitation rather than write to a different path.
- When
additionalPropertiesisfalseandpatternPropertiesis present, Add and Rename MUST accept names matching at least one allowed pattern and reject names matching none. ExplicitpropertyNamesconstraints still apply. - Validation errors produced by
propertyNamesMUST use the configured JSON Forms error translator where available.
For example, the following object accepts keys such as string_title and
number_count, renders a different value control for each prefix, and rejects
every other dynamic key:
{
"type": "object",
"propertyNames": {
"pattern": "^(string|number)_[A-Za-z0-9_]+$"
},
"patternProperties": {
"^string_": { "type": "string" },
"^number_": { "type": "number" }
},
"additionalProperties": false
}
patternProperties keys are regular expressions rather than literal prefixes
or glob expressions. They are not implicitly anchored, so schema authors must
use ^ and $ when a full-name match is intended.
9.6.2 Selecting the dynamic value schema
For each property name, the renderer MUST determine the value schema according to JSON Schema semantics:
- A schema in
propertiesapplies to an explicitly declared name. Declared names are reserved and MUST NOT also appear as additional-property rows. - Every schema in
patternPropertieswhose regular expression matches the property name applies. If several patterns match, all matching constraints MUST be composed; selecting only the first match is insufficient. additionalPropertiesapplies only when the name is not covered bypropertiesor anypatternPropertiesentry. Its schema may betrue,false, an object schema, or a$ref.- When
additionalPropertiesis absent, JSON Schema treats additional values as allowed. The renderer MUST expose the unrestricted Add action when the applied optionallowAdditionalPropertiesIfMissingis enabled; matchingpatternPropertiesentries remain available independently of that option. Existing dynamic data MUST still render even when the option is disabled.
All applicable $ref values MUST resolve against the root schema. The selected
or composed schema determines the value renderer and the default value created
by Add. Object, array, primitive, null, and mixed schemas MUST retain their
correct JSON data types.
If a rename changes which pattern schema applies, the value MUST be rendered and validated against the newly applicable schema without silently coercing, discarding, or replacing the existing value.
9.6.3 Mutation and synchronization
- Add MUST preserve the new key with a JSON-representable initial value under
the dynamic-property initialization contract. Do not store
undefinedwhere it would disappear on serialization; initialization may still need completion. - Clearing a dynamic property's value control MUST preserve the key. A string
clears to
"", including when its schema has a nonempty default. Other types use their documented JSON-representable empty value, or retain a local empty draft when no suitable value exists. Do not universally substitute defaults, null or zero. Follow §18.16; only explicit deletion or an enclosing replacement/removal removes the key. - Rename MUST preserve the property's value and object-key ordering as far as JavaScript object semantics allow. It MUST be atomic: validation failure leaves the original key and value unchanged.
- Delete MUST remove only the selected dynamic property and MUST respect
requiredandminPropertieswhen restrictions are enabled. - Add MUST respect
maxPropertieswhen restrictions are enabled. - External data changes that add, remove, rename, or reorder dynamic keys MUST update the rendered rows. A value-only change MUST NOT unnecessarily rebuild the property's renderer or lose its interaction state.
- Nested dynamic properties MUST use correct data paths and inherit renderer, cell, configuration, validation, internationalization, middleware, and AJV context from the parent form.
- Framework-native and Web Component modes MUST implement identical dynamic-property behavior.
9.7 Combinators and references
The base renderer registry MUST correctly support:
$refallOfanyOfoneOf
Rules:
$refMUST resolve against the root schema.allOfMUST render all composed constraints against the same data path.- An
allOfcomposed from object schemas MUST render the combined object fields. It MUST NOT display a JSON-type selector or initialize array data. anyOfandoneOfMUST offer a clear variant selection mechanism when more than one alternative can be chosen.- With no current value, a variant selector MUST begin unselected and render only its selector, shared combinator properties, and validation feedback. It MUST NOT preselect or render the first variant merely because the field is required. The selected variant detail is rendered only after data fits a variant or the user explicitly selects one.
- Switching alternatives MUST create or retain data according to JSON Forms' combinator semantics; it MUST NOT leave data in an unrelated JSON type.
- Inline details and
GENERATEtake precedence over registry lookup. Otherwise use the ranked registry before generation, following §18.6. - Mixed-type fallback renderers MUST NOT claim schemas handled by a dedicated combinator renderer.
9.8 Mixed-type renderer
A mixed-type renderer handles a schema that genuinely permits more than one
JSON data type, including an array-valued type and unrestricted schemas such
as items: true. It MUST NOT claim an allOf, anyOf, oneOf, ordinary
object, or other schema for which a more specific renderer exists.
The renderer MUST derive its available choices from the resolved schema. Its
selection MUST follow the current data type, with JSON Schema number
accepting integer data. Selecting a different type MUST replace the value with
a schema-derived initial value of that type; it may still require user completion.
A registered per-type detail UI Schema, such as
object-detail or array-detail, MUST be honored.
When deriving that value, a schema default MUST be used only when its runtime
JSON type is compatible with the newly selected type (integer is compatible
with number). An incompatible default from another allowed branch MUST be
ignored. For example, changing a schema with type: ['object', 'boolean'] and
default: true to object must create the schema-derived object default rather
than immediately restoring true and switching the selector back to boolean.
9.8.1 Primitive presentation
When the selected value is a primitive or null, the mixed renderer MUST look
and behave like a normal one-line form control:
- A compact type-selection dropdown appears at the inline-start of the row.
- A populated, editable type-selection dropdown MUST provide a Clear value
button by default. It MAY use the UI library's integrated clear affordance
or a separate compact, library-styled icon button beside or within the
dropdown wrapper. The action MUST follow Section 9.1.1, including accessible
naming, hover/focus visibility, disabled/read-only behavior, and support for
disabling clearability through the applied
clearableoption. Activating it MUST NOT open the dropdown. For an ordinary mixed field, clearing leaves the value absent and the selector unselected. This requirement also applies to type selectors in structured mixed-value headers and tree-node details. Dynamic-property values remain subject to the explicit-delete rule in Section 9.6.3: clearing MUST preserve the key and use the editing mode's empty-value or local-draft policy. - The control for the selected primitive appears beside it in the remaining width and SHOULD have the same visual height as the dropdown.
- For a boolean value, the checkbox or switch MUST retain its native size and be vertically centered against the type selector's visible input box. The selector and boolean control MUST share a row that aligns their centers; labels, descriptions, and validation feedback MUST sit outside that row so they do not shift the alignment. Implementations MUST NOT approximate this with fixed top padding. This applies to checked, unchecked, disabled, and invalid states, including nested mixed values, in every renderer set.
- The active value control MUST be rendered through the normal renderer and cell registries rather than through a mixed-renderer-specific imitation.
- The mixed field label MUST appear exactly once above the selector/value row.
The embedded primitive control MUST suppress its own duplicate label so its
input aligns directly beside the type selector. This rule also applies to
primitive values of dynamic
additionalPropertiesandpatternProperties. - Label, description, required, validation, focus, enabled, disabled, and read-only behavior MUST follow the common control contract.
- Choosing
nullor having no selected type MUST not leave a stale primitive input visible. - With absent data, no type is selected and only the type selector, label, description, and validation feedback are shown. The renderer MUST NOT select the first allowed type automatically, including when the field is required; the required error remains visible until a type/value is explicitly chosen or supplied by the data model.
- While no type is selected, the type selector and its validation feedback MUST use the full width normally available to the selector/value row; the layout MUST NOT reserve an empty value-control column. After a primitive type is selected, the selector returns to its compact inline-start column and the value control occupies the remaining width.
9.8.2 Object and array presentation
When a root mixed value is an object or array, it MUST use a UI-library-native collapsible panel or accordion. The header MUST retain the type selector at the inline-start followed by the field label. Selecting an object or array from a primitive state SHOULD open the panel automatically.
The expanded panel MUST contain two resizable panes, initially approximately 25% tree and 75% detail:
- The inline-start pane is a searchable, expandable tree of the current data.
- The inline-end pane renders the control for the selected tree node.
The collapse/expand action SHOULD be positioned at the inline-end of the
header. The selected type MUST NOT be repeated as a second header label (for
example, array followed by another array); only a distinct field label may
follow the type selector.
The tree and detail panes MUST provide the following behavior:
- The tree root represents the mixed control itself. It MUST use the
same JSON object/array type-icon slot used by descendant nodes, or an
equivalent
{}/[]mark, instead of a genericValuelabel. The root MUST NOT render the mark as plain label text or duplicate it in both the icon and label positions. Objects and arrays are always shown hierarchically; primitive children MAY be hidden initially. - Show/Hide primitives MUST be an eye/eye-off icon action on the root tree row, with a tooltip and accessible name. It MUST NOT consume a separate row as a text button.
- Tree nodes MUST show a stable, recognizable icon or compact glyph for their
actual JSON type:
[]for arrays, a check mark for booleans,#for integer and number values, a prohibited/null mark fornull,{}for objects, and a text-lines mark for strings. The root object or array uses its{}or[]mark in the same type-icon slot and MUST NOT repeat the mark as label text. Sibling rows MUST share one indentation level regardless of their value type. The selected state and expansion state MUST remain visually distinct. Array elements MUST use labels such asItem 0rather than exposing JSON Forms path syntax. Row actions MUST occupy the inline-end of the full tree row and MUST NOT squeeze, offset, or change the indentation of the label. - Search MUST retain matching descendants and their ancestors and expand the matching branches sufficiently to make results visible.
- The root node SHOULD be expanded initially, but descendant object and array branches MUST NOT all be expanded by default. Selecting or navigating to a descendant MUST expand its ancestors; search MAY temporarily expand only the branches required to reveal its matches.
- The tree and detail panes MUST have bounded, independent overflow when the selected detail is tall. Any horizontal tree scrollbar MUST remain directly below the visible tree viewport instead of being pushed to the bottom of the detail form or full page.
- Selecting a node MUST show its regular dispatched JSON Forms control in the
detail pane. The node schema MUST first resolve applicable
$refvalues, including schemas inherited throughproperties,patternProperties,additionalProperties, arrayitems, and recursive references. Registered detail UI Schemas MUST be matched against that resolved node schema and path; map entries such as JSON Schema'sproperties.nameMUST therefore render the registered meta-schema detail rather than a generic mixed-object fallback. Breadcrumbs SHOULD identify the selected path and allow navigation to its ancestors. The unlabeled root structured segment MUST use the same JSON object/array type icon as the tree without duplicating{}or[]as label text. Every descendant segment MUST use only its property orItem Npath label; it MUST NOT add a redundant type icon. Every ancestor segment MUST use the UI library's native interactive breadcrumb/link behavior, including pointer cursor, hover, focus, and keyboard affordances. The current segment MUST remain non-interactive and use the default cursor. - The detail pane for every selected non-root node MUST begin with a compact
type selector derived from that node's resolved schema. This applies equally
to primitive,
null, object, and array nodes, so all permitted type changes are available from one consistent position. For primitive nodes, the compact selector MUST appear at the inline-start of the same row as the value control, matching the presentation of ordinary mixed primitive fields; the value control fills the remaining width. On narrow screens this row MUST stack with the selector above the value control. Fornull, only the selector is shown. For object and array nodes, the selector remains above the complex detail renderer so that the renderer receives the full pane width. The root node MUST NOT repeat this selector because its selector is already present in the outer mixed panel header. Selecting another type MUST replace only the selected node with that type's schema-derived default and keep the node selected. - A nested mixed value whose selected type is an object or array MUST NOT recursively create another tree/detail editor inside the detail pane. It MUST render only its compact type selector and a library-native View/eye icon action with a tooltip and accessible name. This also applies when the nested value is rendered as a child row by the regular object or array renderer: the child row keeps the selector and View icon instead of embedding another object/array editor or collapsible mixed panel. The field's control wrapper MUST own the label and the complete selector/View row: the selector and View action are sibling controls in one horizontal, cross-axis-centered container beneath that shared label. Implementations MUST NOT place the View action outside the labeled control wrapper or align it with fixed padding, margin, or another estimate of label height. Description and validation feedback belong below the complete row.
- Activating the nested View action MUST select that object or array in the existing root tree, expand its ancestor tree nodes, and render the selected object's or array's regular control in the existing right-hand detail pane.
- Object properties MAY be renamed only when their names are dynamic (for
example, properties supplied by
patternPropertiesoradditionalProperties). Declared property names and array indexes MUST NOT be renameable. - Every non-root item SHOULD expose Delete when deletion is permitted. Rename and Delete actions SHOULD be compact, accessible icon actions shown on hover and keyboard focus without changing row layout.
- Rename MUST validate empty and duplicate names,
propertyNames, matchingpatternProperties, JSON Forms path safety, and any configured AJV rules. It MUST preserve the value and key ordering and MUST leave the original data unchanged when validation fails. - Delete MUST respect enabled/read-only state and, when
restrictis enabled, applicablerequired,minProperties, andminItemsconstraints. Deleting a non-empty object or array MUST require confirmation and explain that its nested content will also be removed. - Structural external changes MUST rebuild the tree without losing the active path when it remains valid. Value-only changes SHOULD preserve expansion, selection, and editor interaction state.
9.8.3 Visual acceptance layout
At desktop widths, implementations SHOULD match the following composition. The notation describes placement, not literal text or a required visual style:
Primitive value
Field label
[ compact type selector ][ value control fills remaining width ]
Absent value
Field label
[ full-width type selector ]
[ validation feedback ]
Object or array value
[ compact root type selector ][ distinct field label ] [ collapse action ]
┌───────────────────────── resizable split ──────────────────────────────┐
│ Search tree... │ [root type icon] / Property / Item N │
│ root type icon [eye] │ │
│ child type icon Label │ selected primitive: │
│ child type icon Label │ [ compact type selector ][ value control ] │
│ │ │
│ │ selected object/array: │
│ │ [ compact type selector ] │
│ │ [ regular object/array detail renderer ] │
└────────────────────────────────────────────────────────────────────────┘
The structured root occupies the tree's type-icon position and has no Value,
{}, or [] text label beside it. Only the root breadcrumb uses a type icon,
because it has no path label. All later breadcrumb segments use only their
property name or Item N label. Clickable ancestors use the UI library's link
cursor and interaction states; the current segment does not.
Within a regular object or array renderer, a nested mixed object or array is a compact control with this structure:
Field label
[ compact type selector ][ View icon ]
[ description or validation feedback ]
The label and feedback wrap the complete row, while the selector and View icon are flex/grid siblings aligned by the row itself. Their alignment MUST remain correct when labels wrap, typography changes, feedback appears, or a host supplies a custom control wrapper. The control does not embed another mixed tree/detail panel. A dynamic property is laid out as one property label with its Rename/Delete icon actions, followed by the same aligned mixed-value row; the primitive input MUST NOT introduce a second copy of the property label.
At narrow widths, selector/value rows stack to one column with the type selector above the value control. Implementations MAY stack the tree and detail panes or provide another platform-native responsive presentation, but all navigation, selection, editing, and action behavior MUST remain available.
The tree MUST use appropriate tree, treeitem, expansion, and selection
semantics. Tree rows, disclosure controls, type selection, breadcrumbs, and
item actions MUST be keyboard accessible.
9.9 Layouts
The base renderer set MUST include:
- vertical layout;
- horizontal layout with wrapping at narrow widths;
- group layout;
- categorization/tabs;
- array layouts required by the base examples.
When supported by the renderer family, it SHOULD also include categorization steppers and list-with-detail layouts.
Layouts MUST preserve child visibility, enabled/read-only state, paths, renderer/cell registries, and responsive behavior.
9.10 Extended renderers
Extended renderers are optional additions to the base registry, but a new renderer family SHOULD provide UI-library-native implementations for the extended examples it enables. Current extended capabilities include:
- action button elements;
- color control;
- duration control;
- file control;
- null control;
- AG Grid array control;
- Monaco editor control;
- split layout;
- template, named-template, and slot renderers.
An extended renderer MUST live in its own file and MUST have a tester whose rank does not accidentally override unrelated base schemas.
9.10.1 Monaco editor renderer
The Monaco renderer is an opt-in code editor selected by UI Schema options. It MUST use Monaco Editor itself and MUST NOT replace it with a textarea styled to look like a code editor.
The established selection and value options are:
| Option | Meaning |
|---|---|
format: "code" |
Opts the control into code-editor rendering. |
language |
Sets a fixed Monaco language identifier. |
:language |
Resolves the Monaco language identifier from a root-data path. |
convertJson |
Pretty-prints JSON-compatible data and parses editor text back to JSON. |
monaco.rows |
Sets the normal fixed editor height in text rows. |
monaco.autoGrow |
Grows the editor with its content. |
monaco.minRows / monaco.maxRows |
Clamp auto-growing editor height. |
monaco.options |
Passes supported standalone-editor construction options through to Monaco. |
monaco.initActions |
Runs named Monaco actions after initialization. |
- A string control with
format: "code"and eitherlanguageor:languageMUST be eligible for this renderer. - A non-string JSON value MAY use the renderer when
language: "json"andconvertJson: trueare both present. :languagetakes precedence overlanguage. It MUST react to changes in the referenced form data and update the existing Monaco model language so tokenization, validation, and language services change immediately.- Without a valid language option, the editor SHOULD use
plaintext. - Ordinary code values MUST remain strings. An empty optional string SHOULD
use the renderer set's normal cleared value, usually
undefined. - With
convertJson, valid edits MUST update the form with the parsed JSON value rather than a JSON string. Invalid or incomplete JSON MUST remain editable in Monaco and MUST NOT replace the last valid form value. - External data changes MUST update the editor without causing feedback loops, cursor loss from unnecessary model replacement, or duplicate change events.
The renderer MUST use the normal control wrapper for label, description, required state, errors, focus, and accessibility. Disabled and read-only state MUST make Monaco read-only and MUST prevent edits from reaching JSON Forms. Validation state MUST remain visible around the editor without obscuring Monaco's own diagnostics.
The editor MUST support a maximize/restore action, restore with Escape while maximized, and recalculate its layout after container, pane, row-count, or maximize changes. Auto-grow MUST count model lines and remain within the configured minimum and maximum. Multiple editor instances MUST maintain independent values, languages, options, heights, focus, and disposal.
9.10.2 Monaco theme and Web Component behavior
- Monaco MUST follow explicit
light,dark, andsystemmodes on initial render and on every later transition, including light to dark to light. - Editor, gutter, minimap, selection, diagnostics, and maximize controls MUST remain legible and visually integrated with the selected UI library. A renderer family MAY supply scoped surface colors when its native dark surface differs from Monaco's built-in theme.
- Monaco themes are process-global. A renderer MAY switch only the built-in
vsandvs-darkfallback themes; it MUST preserve a custom Monaco theme installed by the host and MUST NOT unexpectedly retheme demo data editors or other Monaco instances. - Theme detection MUST inspect the surrounding application or Shadow DOM host, not the editor's own previously assigned color scheme, so an editor cannot lock itself in dark mode.
- Monaco's structural styles and renderer-specific styles MUST be installed in the active document or ShadowRoot. A Web Component MUST therefore look and behave like the framework-native renderer rather than depending on document styles that cannot cross the shadow boundary.
- Monaco web workers and language services MUST work in development, production builds, and Web Component bundles without relying on a globally preloaded Monaco instance.
- All subscriptions, models, observers, workers owned by the component, and editor instances MUST be cleaned up when the control is destroyed. Shared host-owned Monaco resources MUST NOT be disposed by an individual control.
9.10.3 Runtime applicability of web-specific renderers
AG Grid, Monaco Editor, and template/named-template/slot renderers are web-platform integrations. They are expected for renderer families targeting a browser, including React, Svelte, Vue, Lit, and browser-targeted variants of other languages or frameworks.
They are not required for renderer sets targeting a native, non-web runtime, such as Flutter native applications, Kotlin/JVM or Compose native UI, Swing, SWT, iOS, or Android views. Those renderer sets MAY omit these extensions or provide documented native equivalents, such as a native data grid, code editor, or composition/template mechanism. They MUST NOT claim exact AG Grid, Monaco, or DOM-template compatibility unless the actual web implementation is hosted. Applicability is determined by the deployment runtime, not solely by the implementation language: a Kotlin or Flutter browser target may still implement the web contract.
10. Cells
Renderer sets that support table or compact array presentation MUST provide cells for the applicable primitive types:
- boolean and boolean toggle;
- date and time;
- enum and one-of enum;
- integer, number, and formatted number;
- text.
Cells MUST preserve value types and read-only/disabled behavior. A cell MAY be visually denser than a full control but MUST use the UI library's components.
11. Tester and registry rules
- Every renderer and cell MUST export a tester with an intentional rank.
- Specific format, combinator, and UI Schema testers MUST outrank generic object, array, primitive, or mixed-type fallbacks.
- Registry order MUST be readable and grouped by controls, complex renderers, layouts, additional renderers, and cells.
- A fallback tester MUST document which otherwise unsupported schemas it is intended to claim.
- A renderer MUST be tested through the full registry, not only as an isolated component, whenever tester competition can affect selection.
12. Web Component parity
The Web Component is another host for the same renderer set, not a simplified renderer implementation.
- It MUST use the same base and extended registries as framework-native mode.
- It MUST accept and update data, schema, UI Schema, UI Schemas, config, read-only state, validation mode, locale, translations, additional errors, direction, theme mode, and renderer-specific settings.
- It MUST emit data/error changes and action events with stable event shapes.
- Shadow DOM styles MUST contain the actual UI-library styles required by the renderer components.
- The Web Component MUST NOT use a hand-written approximation of the UI library's controls.
- Light/dark tokens, dimensions, typography, validation states, descriptions, and spacing MUST match framework-native mode.
- The Shadow DOM host's CSS
color-schemeMUST explicitly match the selected light or dark mode so native scrollbars and other browser controls do not use an unrelated operating-system preference. - Translation fallback MUST use JSON Forms defaults; untranslated internal
keys such as
property.descriptionorproperty.error.requiredMUST NOT be visible. - Popovers, dialogs, selects, calendars, and other portalled components MUST be styled and functional across the Shadow DOM boundary.
- Switching between Framework-native and Web Component modes MUST preserve current data and settings.
13. Theme, RTL, and accessibility
13.1 Theme
- All surfaces, controls, overlays, editors, and icons MUST support light and dark mode.
- Text and validation colors MUST meet reasonable contrast requirements.
- Logos and icons MUST remain visible against their containers in both modes.
- Renderer-specific tokens MUST be scoped so one demo cannot leak styles into another demo in the aggregate application.
13.2 RTL
- Direction MUST use logical inline properties where possible.
- Sidebar placement, settings drawer placement, form/data panes, icons with directional meaning, and control alignment MUST behave correctly in RTL.
- Data paths and JSON text remain unchanged.
13.3 Accessibility
- All interactive elements MUST be keyboard reachable.
- Icon-only controls MUST have accessible names.
- Dialogs and drawers MUST manage focus and support Escape when the library provides that behavior.
- Tabs, selects, checkboxes, and toggles MUST expose their standard roles and states.
- Errors MUST be announced or associated with their controls.
- Focus indicators MUST not be removed unless replaced with an equally visible UI-library focus treatment.
14. Testing specification
Tests exist to validate JSON Forms integration and application contracts, not to retest the upstream UI library.
14.1 What to test
Each renderer SHOULD test:
- tester selection and rank where ambiguity is possible;
- rendering through the actual renderer registry;
- value conversion and
handleChangeoutput; - Clear value availability only for populated, enabled controls, its hover/focus visibility, accessible name, and emitted clear value;
- unselected dropdown behavior, including no implicit first selection and a required error without data initialization;
- disabled, read-only, hidden, required, description, and error behavior;
- library-component composition when accidental fallback to native HTML is a risk;
- schema edge cases relevant to the renderer;
- accessibility attributes that the integration is responsible for.
Complex renderers MUST test data-shape preservation. Required regression cases include:
allOfobject composition remains an object;- arrays respect min/max restrictions;
- mixed primitive values use the one-line selector/control presentation and switching type creates the correct default value;
- mixed objects and arrays use the collapsible tree/detail presentation, preserve selection during synchronization, navigate nested structures, and enforce rename/delete permissions and restrictions;
- dynamic-property add, rename, delete, duplicate-name,
propertyNames,patternProperties, schema-selection,$ref, and restriction behavior; - date/time/date-time pickers emit the expected serialized values, including a regression case where display and save formats differ;
- Monaco tester selection, reactive language changes, string/JSON conversion, invalid JSON retention, fixed/auto-growing height, and maximize/restore;
- Monaco light/dark/system transitions, especially light to dark to light, multiple-instance isolation, custom host-theme preservation, and Shadow DOM styling in Web Component mode;
- Framework-native and Web Component registries expose equivalent renderers.
14.2 What not to test
- Do not create tests whose only purpose is to prove that an unmodified upstream button, alert, tab, input, or other UI-library primitive works.
- Do not snapshot large amounts of upstream component markup.
- Do not duplicate the UI library's own accessibility or interaction suite.
An upstream component test is justified only when the implementation repository modifies the component or depends on a specific integration detail that could regress.
14.3 Required verification
Before a renderer-set change is considered complete:
- Run focused tests for the changed renderer.
- Build the base renderer package.
- Build the extended renderer package when affected.
- Build the Web Component package when affected.
- Build the corresponding demo with its documented toolchain.
- Run the implementation repository’s documented test command.
- Run formatting and
git diff --check. - Visually inspect representative examples in light, dark, RTL, responsive, framework-native, and Web Component modes when browser testing is available.
15. New renderer-set implementation sequence
- Inventory the UI library. Identify its provider, theme system, icons, form controls, pickers, layouts, overlays, tables, and accessibility APIs.
- Create the base renderer package. Keep renderer, cell and reusable component responsibilities clear under the platform's source conventions (§3.2).
- Implement primitive controls. Establish labels, descriptions, errors, value conversion, and read-only behavior first.
- Implement layouts and complex renderers. Include objects, arrays,
dynamic properties (
patternProperties,additionalProperties, andpropertyNames),$ref, and combinators before relying on a mixed fallback. - Add cells. Cover every compact/table type supported by the examples.
- Create extended renderers. Use the UI library for every visual control; reuse only genuinely UI-independent behavior.
- Create the Web Component. Reuse the same registries and package the real styles for its Shadow DOM.
- Create the independent demo app. Supply the library shell, demo UI controls, logo, provider settings, and theme wrapper to the shared demo layer.
- Add the app to the aggregate selector. Keep its build output isolated in its own subdirectory.
- Add integration tests and run the acceptance checklist. Test schemas through the full registry and verify that data shapes never depend on the selected renderer family.
16. Acceptance checklist
A new renderer set is ready when all answers are yes:
- [ ] Does it use real UI-library components rather than simplified adapters?
- [ ] Are renderer and component responsibilities independently reviewable under the platform's source conventions?
- [ ] Are base, extended, Web Component, and demo projects separated?
- [ ] Do package and demo builds work with the documented framework toolchain?
- [ ] Does the independent demo implement the complete shared shell contract?
- [ ] Are all settings present, with Restrict enabled by default?
- [ ] Do light, dark, system, LTR, RTL, and responsive modes work?
- [ ] Does Demo and Data use the UI library's splitter, allow either pane to become larger, and retain usable minimum pane sizes?
- [ ] Do all JSON editors, form-only mode, and deep links work?
- [ ] Are date/time/date-time controls real UI-library pickers, and do they honor separate UI Schema display and save formats?
- [ ] Do applicable populated inputs, textareas, numeric controls, and dropdowns expose an accessible Clear value icon on hover/focus without obscuring the value?
- [ ] Do enum, one-of, mixed, and other selection controls remain genuinely unselected when data is absent, including when required, rather than silently choosing their first option?
- [ ] Do objects, arrays,
patternProperties,additionalProperties,propertyNames,$ref,allOf,anyOf, andoneOfpreserve correct data shapes and schema behavior? - [ ] Does the mixed renderer use a one-line selector/control for primitives and a collapsible, searchable tree/detail split for objects and arrays, with schema-aware rename and delete actions?
- [ ] Does the Monaco renderer react to language and theme changes, preserve invalid JSON while editing, isolate multiple instances, and work in the Web Component Shadow DOM?
- [ ] Are AG Grid, Monaco, and template renderers required only for applicable browser runtimes, with native omissions or equivalents documented?
- [ ] Do Framework-native and Web Component modes look and behave equivalently?
- [ ] Are tests focused on renderer integration rather than upstream primitives?
- [ ] Do focused tests, package builds, demo builds, and the documented test command pass?
17. Source-of-truth priority
When references disagree, use this order:
- JSON Schema and JSON Forms semantics for data and validation behavior.
- The selected UI library's official API and components for appearance and interaction.
- This guide for host architecture and demo behavior. spec.md remains authoritative for portable semantics.
- Existing renderer demos and implementations as visual and feature references.
Any intentional deviation MUST be documented in the renderer package README and covered by a test when it changes observable behavior.
Component ownership
When a UI library distributes component source, consuming hosts own those components and keep them aligned with their chosen upstream version. Renderers use a documented component interface rather than shipping competing private copies. Native and Web Component hosts must both supply the real component styles and dependencies. Framework-specific aliases and filenames belong in implementation setup guides.
Catalog registration and validation summary
Demos MUST discover specification examples from the spec package catalog or
example module, without a second per-example registry in each renderer project.
Use spec-<id> for stable links and Spec: <title> for display labels. Keep official
JSON Forms examples in their own jsonforms- namespace. New catalog entries
appear after rebuilding/updating the spec package; no renderer registration edit
is required. Framework-native enhancements are optional and cannot gate discovery.
Demo and Demo and Data tabs SHOULD use one shared validation-summary icon across renderer families, with an error count and the actual errors available on hover and keyboard focus. The icon has an accessible name. Additional errors remain visible alongside schema validation errors, with useful paths and source labels where available. A count alone is insufficient to explain an invalid form.
Example source navigation
When a demo hosts both spec fixtures and original JSON Forms examples, provide an Example source selector above sidebar search: Spec examples, JSON Forms originals, and All examples. Prefer Spec initially when present; otherwise use All. All also includes host-specific additions. Search combines with this filter rather than replacing it. Identify sources from registration metadata, not arbitrary display-label matching.
Filtering changes the navigation list only. Preserve the currently open form and its edits, and allow direct example URLs even if their source is excluded from the menu. Show an empty-results state when search and source have no matches. Use the host UI library's accessible select or equivalent navigation control. The source choice may remain session-local; it is not form config.
Layout default conformance
All ports must follow the portable defaults in §7.1. Native field margins must not add to the managed layout gap. Each renderer project records verification against this contract.