JSON Forms Extended

Authoring schemas

These schemas describe the published authoring subset of spec.md. The explicitly provisional input-adornment authoring contract is also validated here. Schema validation does not establish renderer support or visual behavior. The accepted optional host styling contracts (options.part and jsonformsExtended.markup.textParamSpans) are validated as well; their platform-specific implementation and verification status is tracked separately. Other provisional and unimplemented features belong in TODO.md, not schema definitions. They use draft-07 and preserve unknown options and namespaces. Core configuration settings are also described even when a renderer does not implement their presentation behavior; their descriptions state that boundary.

File Input
jsonforms-uischema.schema.json Common UI vocabulary
jsonforms-extended-uischema.schema.json Published extended UI vocabulary
jsonforms-config.schema.json Common configuration
jsonforms-extended-config.schema.json Extended configuration
jsonforms-rule.schema.json Standalone serialized rule, also referenced by both UI profiles
example.schema.json Example catalog entries

Register every file by its $id before compiling a profile. All $ref targets are bundled, apart from the standard draft-07 meta-schema supplied by validators. No remote lookup is needed. Use allErrors: true for useful authoring feedback; leave useDefaults, coercion and removal of additional properties disabled.

The common UI profile restricts element types to its vocabulary. The extended profile accepts unknown types for downstream registries while validating all known elements recursively. Known option types are checked; unknown options are retained, so spelling checks beyond the declared vocabulary belong in a linter.

Data-schema documents use the standard JSON Schema meta-schema supplied by Ajv. This package does not publish a copy or an extended replacement. Custom keyword validation and runtime behavior belong to the chosen validator integration.

Scope resolution, named-child lookup, CSS parsing, expressions, permission checks and renderer interactions require semantic tests. See the separate behavior vectors. Deliberate authoring failures in examples are listed in expected-invalid.json.

$dynamic is excluded from the published common/extended schemas and current conformance vectors. The separate jsonforms-dynamic-uischema.schema.json validates the experimental portable descriptor syntax only. Reserved layout hints and unimplemented options are likewise omitted. Unknown extension keys remain permitted for interoperability; this is not validation of their shape or a promise of support. dynamicValues.enabled remains because Label interpolation already uses it to gate access to data namespaces.

Standalone rules and runtime registries

Validate a rule JSON document directly with jsonforms-rule.schema.json, for example:

{
  "effect": "SHOW",
  "condition": { "scope": "#/properties/enabled", "schema": { "const": true } }
}

Both UI profiles reference this same schema. Nested AND/OR conditions are checked recursively, including embedded draft-07 schemas. Empty AND and OR lists are valid core conditions (true and false, respectively). READONLY and WRITABLE reflect the audited core 3.9.0-alpha.1; hosts using an older core must check effect support.

Core's validate condition requires a JavaScript function. A string containing function source is not a portable JSON rule and is rejected. Likewise, ranked uischemas registry testers are functions; the worked registries use trusted .mjs modules. A JSON registry containing tester strings needs a separately specified host adapter; the old function-source regex is not such an adapter.

Known options inside cell overrides are checked as control options. This checks their shape, not whether every renderer is available as a cell. Monaco and grid vendor option bags remain open. Global declarations use traced config paths or an explicitly accepted optional platform contract. The config-consumption inventory marks the styling switch as pending verification rather than claiming a traced renderer implementation. Keep field-dependent elementLabelProp, detail, summary and cells on their controls; isolated merged-config readers do not establish a common global default.

Group child placement

Both UI profiles validate nonempty top-level child slot strings. Group uses the first authored direct child for each of cover, header and footer. Later matches and unknown slot names are valid and remain in the body, as if slot were omitted. The schemas accept these fallback cases; determining actual placement requires the parent semantics. All region content is under elements. The removed Group-level region fields are unknown extension keys, not supported child locations. slot and Template name are independent.