@chobantonov/jsonforms-extended-spec 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +126 -2
- package/conformance/authoring.json +2169 -0
- package/conformance/behavior.json +731 -0
- package/conformance/config-consumption.json +1531 -0
- package/conformance/expected-invalid.json +20 -0
- package/docs/audit.md +150 -0
- package/docs/conditional-fields.md +80 -0
- package/docs/draft-07-visual-support.md +43 -0
- package/docs/external-resources-proposal.md +536 -0
- package/docs/implementation-guide.md +180 -0
- package/docs/implementation-pitfalls.md +802 -0
- package/docs/implementation-web-typescript.md +41 -0
- package/docs/renderer-and-demo.md +1347 -0
- package/docs/renderer-selection.md +99 -0
- package/docs/spec.md +8321 -0
- package/docs/todo.md +149 -0
- package/examples/README.md +121 -0
- package/examples/additional-errors/README.md +169 -0
- package/examples/additional-errors/config.json +3 -0
- package/examples/additional-errors/data.json +11 -0
- package/examples/additional-errors/schema.json +56 -0
- package/examples/additional-errors/translations.json +64 -0
- package/examples/additional-errors/uischema.json +158 -0
- package/examples/additional-items-pagination/README.md +8 -0
- package/examples/additional-items-pagination/config.json +10 -0
- package/examples/additional-items-pagination/data.json +22 -0
- package/examples/additional-items-pagination/schema.json +30 -0
- package/examples/additional-items-pagination/translations.json +16 -0
- package/examples/additional-items-pagination/uischema.json +39 -0
- package/examples/additional-properties/README.md +188 -0
- package/examples/additional-properties/config.json +5 -0
- package/examples/additional-properties/data.json +31 -0
- package/examples/additional-properties/schema.json +78 -0
- package/examples/additional-properties/translations.json +80 -0
- package/examples/additional-properties/uischema.json +104 -0
- package/examples/ag-grid/README.md +62 -0
- package/examples/ag-grid/config.json +14 -0
- package/examples/ag-grid/data.json +124 -0
- package/examples/ag-grid/schema.json +48 -0
- package/examples/ag-grid/translations.json +58 -0
- package/examples/ag-grid/uischema.json +671 -0
- package/examples/array-choices/README.md +150 -0
- package/examples/array-choices/config.json +4 -0
- package/examples/array-choices/data.json +10 -0
- package/examples/array-choices/schema.json +68 -0
- package/examples/array-choices/translations.json +64 -0
- package/examples/array-choices/uischema.json +97 -0
- package/examples/array-controls/README.md +237 -0
- package/examples/array-controls/config.json +4 -0
- package/examples/array-controls/data.json +147 -0
- package/examples/array-controls/schema.json +374 -0
- package/examples/array-controls/translations.json +186 -0
- package/examples/array-controls/uischema.json +685 -0
- package/examples/array-detail-modes/README.md +11 -0
- package/examples/array-detail-modes/data.json +38 -0
- package/examples/array-detail-modes/schema.json +89 -0
- package/examples/array-detail-modes/translations.json +36 -0
- package/examples/array-detail-modes/uischema.json +73 -0
- package/examples/array-detail-modes/uischemas.d.mts +2 -0
- package/examples/array-detail-modes/uischemas.json +15 -0
- package/examples/boolean-controls/README.md +109 -0
- package/examples/boolean-controls/config.json +3 -0
- package/examples/boolean-controls/data.json +27 -0
- package/examples/boolean-controls/schema.json +98 -0
- package/examples/boolean-controls/translations.json +94 -0
- package/examples/boolean-controls/uischema.json +126 -0
- package/examples/button-actions/README.md +259 -0
- package/examples/button-actions/config.json +7 -0
- package/examples/button-actions/data.json +5 -0
- package/examples/button-actions/host.mjs +14 -0
- package/examples/button-actions/schema.json +20 -0
- package/examples/button-actions/translations.json +60 -0
- package/examples/button-actions/uischema.json +179 -0
- package/examples/catalog.json +634 -0
- package/examples/categorization/README.md +132 -0
- package/examples/categorization/config.json +7 -0
- package/examples/categorization/data.json +8 -0
- package/examples/categorization/schema.json +29 -0
- package/examples/categorization/translations.json +72 -0
- package/examples/categorization/uischema.json +288 -0
- package/examples/choice-controls/README.md +136 -0
- package/examples/choice-controls/config.json +10 -0
- package/examples/choice-controls/data.json +61 -0
- package/examples/choice-controls/schema.json +406 -0
- package/examples/choice-controls/translations.json +154 -0
- package/examples/choice-controls/uischema.json +575 -0
- package/examples/choice-controls/uischemas.d.mts +2 -0
- package/examples/choice-controls/uischemas.json +16 -0
- package/examples/code-editor/README.md +74 -0
- package/examples/code-editor/data.json +8 -0
- package/examples/code-editor/schema.json +28 -0
- package/examples/code-editor/translations.json +20 -0
- package/examples/code-editor/uischema.json +77 -0
- package/examples/collection-pagination/README.md +5 -0
- package/examples/collection-pagination/config.json +1 -0
- package/examples/collection-pagination/data.json +64 -0
- package/examples/collection-pagination/schema.json +23 -0
- package/examples/collection-pagination/translations.json +14 -0
- package/examples/collection-pagination/uischema.json +14 -0
- package/examples/color-control/README.md +151 -0
- package/examples/color-control/config.json +7 -0
- package/examples/color-control/data.json +11 -0
- package/examples/color-control/schema.json +61 -0
- package/examples/color-control/translations.json +76 -0
- package/examples/color-control/uischema.json +106 -0
- package/examples/combinators/README.md +223 -0
- package/examples/combinators/config.json +9 -0
- package/examples/combinators/data.json +23 -0
- package/examples/combinators/schema.json +232 -0
- package/examples/combinators/translations.json +178 -0
- package/examples/combinators/uischema.json +158 -0
- package/examples/conditional-fields/README.md +19 -0
- package/examples/conditional-fields/config.json +5 -0
- package/examples/conditional-fields/data.json +7 -0
- package/examples/conditional-fields/schema.json +59 -0
- package/examples/conditional-fields/translations.json +30 -0
- package/examples/conditional-fields/uischema.json +71 -0
- package/examples/container-validation-indicator/README.md +187 -0
- package/examples/container-validation-indicator/config.json +9 -0
- package/examples/container-validation-indicator/data.json +68 -0
- package/examples/container-validation-indicator/schema.json +222 -0
- package/examples/container-validation-indicator/translations.json +120 -0
- package/examples/container-validation-indicator/uischema.json +98 -0
- package/examples/cron-control/README.md +155 -0
- package/examples/cron-control/data.json +15 -0
- package/examples/cron-control/schema.json +72 -0
- package/examples/cron-control/translations.json +80 -0
- package/examples/cron-control/uischema.json +91 -0
- package/examples/destructive-confirmation/README.md +210 -0
- package/examples/destructive-confirmation/config.json +17 -0
- package/examples/destructive-confirmation/data.json +86 -0
- package/examples/destructive-confirmation/schema.json +204 -0
- package/examples/destructive-confirmation/translations.json +112 -0
- package/examples/destructive-confirmation/uischema.json +105 -0
- package/examples/draft-07-metaschema/README.md +11 -0
- package/examples/draft-07-metaschema/config.json +3 -0
- package/examples/draft-07-metaschema/data.json +25 -0
- package/examples/draft-07-metaschema/schema.json +172 -0
- package/examples/draft-07-metaschema/translations.json +10 -0
- package/examples/draft-07-metaschema/uischema.json +14 -0
- package/examples/dynamic-playground/README.md +95 -0
- package/examples/dynamic-playground/config.json +8 -0
- package/examples/dynamic-playground/configuration.json +152 -0
- package/examples/dynamic-playground/data.json +15 -0
- package/examples/dynamic-playground/dynamic-uischema.json +379 -0
- package/examples/dynamic-playground/host.mjs +37 -0
- package/examples/dynamic-playground/schema.json +48 -0
- package/examples/dynamic-playground/translations.json +76 -0
- package/examples/dynamic-playground/uischema.json +36 -0
- package/examples/editor-details/README.md +10 -0
- package/examples/editor-details/data.json +18 -0
- package/examples/editor-details/schema.json +49 -0
- package/examples/editor-details/translations.json +28 -0
- package/examples/editor-details/uischema.json +53 -0
- package/examples/editor-details/uischemas.d.mts +2 -0
- package/examples/editor-details/uischemas.json +14 -0
- package/examples/file-control/README.md +108 -0
- package/examples/file-control/data.json +28 -0
- package/examples/file-control/schema.json +89 -0
- package/examples/file-control/translations.json +46 -0
- package/examples/file-control/uischema.json +152 -0
- package/examples/group-layout/README.md +149 -0
- package/examples/group-layout/config.json +10 -0
- package/examples/group-layout/data.json +9 -0
- package/examples/group-layout/schema.json +51 -0
- package/examples/group-layout/translations.json +62 -0
- package/examples/group-layout/uischema.json +249 -0
- package/examples/index.d.ts +17 -0
- package/examples/index.js +69 -0
- package/examples/input-adornments/README.md +68 -0
- package/examples/input-adornments/data.json +41 -0
- package/examples/input-adornments/schema.json +207 -0
- package/examples/input-adornments/translations.json +106 -0
- package/examples/input-adornments/uischema.json +695 -0
- package/examples/job-application/README.md +23 -0
- package/examples/job-application/config.json +10 -0
- package/examples/job-application/data.json +68 -0
- package/examples/job-application/schema.json +196 -0
- package/examples/job-application/translations.json +388 -0
- package/examples/job-application/uischema.json +218 -0
- package/examples/job-application/uischemas.json +153 -0
- package/examples/json-editor/README.md +28 -0
- package/examples/json-editor/schema.json +1 -0
- package/examples/json-editor/translations.json +10 -0
- package/examples/json-editor/uischema.json +16 -0
- package/examples/json-inference/README.md +33 -0
- package/examples/json-inference/translations.json +10 -0
- package/examples/json-inference/uischema.json +16 -0
- package/examples/kitchen-sink/README.md +86 -0
- package/examples/kitchen-sink/config.json +14 -0
- package/examples/kitchen-sink/data.json +263 -0
- package/examples/kitchen-sink/invalid-data.json +263 -0
- package/examples/kitchen-sink/schema.json +515 -0
- package/examples/kitchen-sink/translations.json +270 -0
- package/examples/kitchen-sink/uischema.json +722 -0
- package/examples/label-interpolation/README.md +200 -0
- package/examples/label-interpolation/config.json +8 -0
- package/examples/label-interpolation/data.json +13 -0
- package/examples/label-interpolation/schema.json +64 -0
- package/examples/label-interpolation/translations.json +94 -0
- package/examples/label-interpolation/uischema.json +375 -0
- package/examples/layout-sizing/README.md +162 -0
- package/examples/layout-sizing/config.json +10 -0
- package/examples/layout-sizing/data.json +14 -0
- package/examples/layout-sizing/schema.json +58 -0
- package/examples/layout-sizing/translations.json +42 -0
- package/examples/layout-sizing/uischema.json +558 -0
- package/examples/markup-label/README.md +109 -0
- package/examples/markup-label/config.json +16 -0
- package/examples/markup-label/data.json +5 -0
- package/examples/markup-label/schema.json +24 -0
- package/examples/markup-label/translations.json +40 -0
- package/examples/markup-label/uischema.json +149 -0
- package/examples/mixed-control/README.md +164 -0
- package/examples/mixed-control/config.json +11 -0
- package/examples/mixed-control/data.json +70 -0
- package/examples/mixed-control/schema.json +221 -0
- package/examples/mixed-control/translations.json +158 -0
- package/examples/mixed-control/uischema.json +211 -0
- package/examples/null-control/README.md +111 -0
- package/examples/null-control/config.json +4 -0
- package/examples/null-control/data.json +6 -0
- package/examples/null-control/schema.json +36 -0
- package/examples/null-control/translations.json +42 -0
- package/examples/null-control/uischema.json +56 -0
- package/examples/numeric-controls/README.md +94 -0
- package/examples/numeric-controls/config.json +4 -0
- package/examples/numeric-controls/data.json +8 -0
- package/examples/numeric-controls/schema.json +52 -0
- package/examples/numeric-controls/translations.json +56 -0
- package/examples/numeric-controls/uischema.json +77 -0
- package/examples/object-control/README.md +220 -0
- package/examples/object-control/config.json +4 -0
- package/examples/object-control/data.json +62 -0
- package/examples/object-control/schema.json +252 -0
- package/examples/object-control/translations.json +160 -0
- package/examples/object-control/uischema.json +275 -0
- package/examples/object-control/uischemas.d.mts +2 -0
- package/examples/object-control/uischemas.json +59 -0
- package/examples/password-control/README.md +119 -0
- package/examples/password-control/config.json +3 -0
- package/examples/password-control/data.json +18 -0
- package/examples/password-control/schema.json +65 -0
- package/examples/password-control/translations.json +64 -0
- package/examples/password-control/uischema.json +94 -0
- package/examples/pre-touch-errors/README.md +176 -0
- package/examples/pre-touch-errors/config.json +4 -0
- package/examples/pre-touch-errors/data.json +5 -0
- package/examples/pre-touch-errors/schema.json +56 -0
- package/examples/pre-touch-errors/translations.json +68 -0
- package/examples/pre-touch-errors/uischema.json +85 -0
- package/examples/presentation/README.md +148 -0
- package/examples/presentation/config.json +9 -0
- package/examples/presentation/data.json +6 -0
- package/examples/presentation/schema.json +21 -0
- package/examples/presentation/translations.json +64 -0
- package/examples/presentation/uischema.json +210 -0
- package/examples/property-pagination/README.md +5 -0
- package/examples/property-pagination/config.json +1 -0
- package/examples/property-pagination/data.json +17 -0
- package/examples/property-pagination/schema.json +14 -0
- package/examples/property-pagination/translations.json +10 -0
- package/examples/property-pagination/uischema.json +24 -0
- package/examples/recursive-tree/README.md +49 -0
- package/examples/recursive-tree/config.json +1 -0
- package/examples/recursive-tree/data.json +40 -0
- package/examples/recursive-tree/schema.json +89 -0
- package/examples/recursive-tree/translations.json +42 -0
- package/examples/recursive-tree/uischema.json +84 -0
- package/examples/recursive-tree/uischemas.d.mts +2 -0
- package/examples/recursive-tree/uischemas.json +51 -0
- package/examples/split-layout/README.md +123 -0
- package/examples/split-layout/config.json +3 -0
- package/examples/split-layout/data.json +13 -0
- package/examples/split-layout/schema.json +50 -0
- package/examples/split-layout/translations.json +50 -0
- package/examples/split-layout/uischema.json +204 -0
- package/examples/string-controls/README.md +159 -0
- package/examples/string-controls/config.json +5 -0
- package/examples/string-controls/data.json +13 -0
- package/examples/string-controls/schema.json +70 -0
- package/examples/string-controls/translations.json +76 -0
- package/examples/string-controls/uischema.json +148 -0
- package/examples/table-row-details/README.md +69 -0
- package/examples/table-row-details/config.json +7 -0
- package/examples/table-row-details/data.json +280 -0
- package/examples/table-row-details/schema.json +61 -0
- package/examples/table-row-details/translations.json +56 -0
- package/examples/table-row-details/uischema.json +1303 -0
- package/examples/template-layout/README.md +250 -0
- package/examples/template-layout/config.json +9 -0
- package/examples/template-layout/data.json +20 -0
- package/examples/template-layout/host.mjs +13 -0
- package/examples/template-layout/schema.json +48 -0
- package/examples/template-layout/translations.json +70 -0
- package/examples/template-layout/uischema.json +177 -0
- package/examples/template-slots/README.md +19 -0
- package/examples/template-slots/data.json +4 -0
- package/examples/template-slots/schema.json +11 -0
- package/examples/template-slots/translations.json +26 -0
- package/examples/template-slots/uischema.json +47 -0
- package/examples/template-slots/uischemas.d.mts +2 -0
- package/examples/template-slots/uischemas.json +56 -0
- package/examples/temporal-controls/README.md +325 -0
- package/examples/temporal-controls/data.json +44 -0
- package/examples/temporal-controls/schema.json +208 -0
- package/examples/temporal-controls/translations.json +156 -0
- package/examples/temporal-controls/uischema.json +297 -0
- package/examples/tree-max-depth/README.md +5 -0
- package/examples/tree-max-depth/config.json +3 -0
- package/examples/tree-max-depth/data.json +31 -0
- package/examples/tree-max-depth/schema.json +258 -0
- package/examples/tree-max-depth/translations.json +42 -0
- package/examples/tree-max-depth/uischema.json +16 -0
- package/examples/tree-max-depth/uischemas.d.mts +2 -0
- package/examples/tree-max-depth/uischemas.json +50 -0
- package/examples/tuple-control/README.md +335 -0
- package/examples/tuple-control/config.json +4 -0
- package/examples/tuple-control/data.json +61 -0
- package/examples/tuple-control/schema.json +218 -0
- package/examples/tuple-control/translations.json +142 -0
- package/examples/tuple-control/uischema.json +128 -0
- package/examples/tuple-control/uischemas.d.mts +2 -0
- package/examples/tuple-control/uischemas.json +125 -0
- package/examples/validator-profile/README.md +197 -0
- package/examples/validator-profile/config.json +9 -0
- package/examples/validator-profile/data.json +16 -0
- package/examples/validator-profile/schema.json +139 -0
- package/examples/validator-profile/translations.json +34 -0
- package/examples/validator-profile/uischema.json +59 -0
- package/package.json +83 -3
- package/provenance.json +140 -0
- package/schemas/README.md +77 -0
- package/schemas/example.schema.json +37 -0
- package/schemas/jsonforms-config.schema.json +427 -0
- package/schemas/jsonforms-dynamic-uischema.schema.json +220 -0
- package/schemas/jsonforms-extended-config.schema.json +327 -0
- package/schemas/jsonforms-extended-uischema.schema.json +1923 -0
- package/schemas/jsonforms-rule.schema.json +104 -0
- package/schemas/jsonforms-uischema.schema.json +1421 -0
- package/typescript/README.md +540 -0
- package/typescript/lib/authoring/cssLength.d.ts +33 -0
- package/typescript/lib/authoring/cssLength.js +25 -0
- package/typescript/lib/authoring/dynamic.d.ts +73 -0
- package/typescript/lib/authoring/dynamic.js +8 -0
- package/typescript/lib/authoring/forSchema.d.ts +376 -0
- package/typescript/lib/authoring/forSchema.js +84 -0
- package/typescript/lib/authoring/schemaTypes.d.ts +111 -0
- package/typescript/lib/authoring/schemaTypes.js +15 -0
- package/typescript/lib/index.d.ts +4 -0
- package/typescript/lib/index.js +20 -0
- package/typescript/package.json +1 -0
- package/typescript/src/authoring/cssLength.ts +79 -0
- package/typescript/src/authoring/dynamic.ts +96 -0
- package/typescript/src/authoring/forSchema.ts +419 -0
- package/typescript/src/authoring/schemaTypes.ts +143 -0
- package/typescript/src/index.ts +4 -0
- package/typescript/test/schemaContract.test.ts +626 -0
- package/typescript/test/tsconfig.json +10 -0
- package/typescript/test/typedAuthoring.test.ts +140 -0
- package/typescript/test/typedAuthoringCoverage.test.ts +145 -0
- package/typescript/test/typedAuthoringCssLength.test.ts +81 -0
- package/typescript/test/typedAuthoringNames.test.ts +90 -0
- package/typescript/test/typedDynamic.test.ts +88 -0
- package/typescript/tsconfig.json +15 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"example": "button-actions",
|
|
4
|
+
"file": "uischema.json",
|
|
5
|
+
"pointer": "/elements/4/elements/1/elements/4",
|
|
6
|
+
"reason": "Deliberate action/script conflict: tolerant runtime must diagnose and prefer the action.",
|
|
7
|
+
"replacement": {
|
|
8
|
+
"type": "Button",
|
|
9
|
+
"action": "submit",
|
|
10
|
+
"label": "Conflict removed for validating the surrounding fixture"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"example": "markup-label",
|
|
15
|
+
"file": "uischema.json",
|
|
16
|
+
"pointer": "/elements/0/elements/2/elements/0/options/markup",
|
|
17
|
+
"reason": "Deliberate unsupported raw HTML markup request; renderer must refuse it.",
|
|
18
|
+
"replacement": "plain"
|
|
19
|
+
}
|
|
20
|
+
]
|
package/docs/audit.md
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Authoring-schema audit
|
|
2
|
+
|
|
3
|
+
Audited on 2026-09-27 against the local `jsonforms-react-renderers` checkout at
|
|
4
|
+
`e931e46c237f371dc283c291746640d653a32190` and its installed JSON Forms core
|
|
5
|
+
`3.9.0-alpha.1`. The historical comparison used
|
|
6
|
+
`jsonforms-vuetify-webcomponent/packages/example/src/core/jsonschema/specification`.
|
|
7
|
+
|
|
8
|
+
## Result
|
|
9
|
+
|
|
10
|
+
The source documents and worked examples were transferred successfully. The
|
|
11
|
+
schemas were not a complete description of the implemented inputs: several
|
|
12
|
+
known values were accepted without type checking, and serialized rule validation
|
|
13
|
+
accepted unsupported function strings. This audit corrects those gaps below.
|
|
14
|
+
|
|
15
|
+
This is a source and authoring-validation audit, not a live renderer certification.
|
|
16
|
+
Unknown extensions and vendor option bags deliberately remain open. A schema-valid
|
|
17
|
+
setting does not establish adapter support.
|
|
18
|
+
|
|
19
|
+
## Source reconciliation
|
|
20
|
+
|
|
21
|
+
- The source checkout HEAD equals `provenance.json`'s recorded commit.
|
|
22
|
+
- All 15 recorded SHA-256 document hashes match the source files.
|
|
23
|
+
- All 32 source `examples/spec` directories exist in this package's catalog.
|
|
24
|
+
- All 156 source JSON assets are present: 143 are structurally identical and 13
|
|
25
|
+
differ. None are missing.
|
|
26
|
+
- Twelve changed assets are schema/data/UI-schema triples in categorization,
|
|
27
|
+
object-control, string-controls and tuple-control. They replace domain-specific
|
|
28
|
+
property names consistently. The remaining change is temporal-controls' data
|
|
29
|
+
schema: positional tuple `prefixItems` was converted to draft-07 `items`.
|
|
30
|
+
- Every heading from the source consolidated specification remains verbatim
|
|
31
|
+
except its final renderer roadmap. That content was reorganized into
|
|
32
|
+
capability declarations, host contracts and the backlog. Heading preservation
|
|
33
|
+
alone is not proof of semantic equivalence; the reconciliation record also
|
|
34
|
+
documents accordion state, configuration, format, layout and proposal changes.
|
|
35
|
+
- Registry and host examples were converted from framework-bound TypeScript to
|
|
36
|
+
standalone `.mjs` hooks where needed. The package tests their imports and the
|
|
37
|
+
UI schemas returned by the object and tuple registries.
|
|
38
|
+
|
|
39
|
+
The published schemas describe current authoring inputs. `start`/`responsive`
|
|
40
|
+
are reserved, and `showRemoveButton` remains unimplemented.
|
|
41
|
+
`separateReadonlyFromDisabled` is described without claiming renderer support.
|
|
42
|
+
|
|
43
|
+
## Coverage reviewed
|
|
44
|
+
|
|
45
|
+
The historical implementation review checked renderer and cell registries,
|
|
46
|
+
shared utilities, and core model/default/mapper/runtime code. The table records
|
|
47
|
+
authoring vocabulary reviewed for schema coverage; it does not state current
|
|
48
|
+
renderer support. Renderer selection still depends on the bound data schema.
|
|
49
|
+
|
|
50
|
+
| Implementation family | Authoring coverage |
|
|
51
|
+
| --- | --- |
|
|
52
|
+
| Core Control, Label, VerticalLayout, HorizontalLayout, Group, Category, Categorization | Common elements, labels, scopes, recursion, rules and layout options |
|
|
53
|
+
| Text, multiline, password/OTP, native fallback, numeric/integer/slider, boolean/toggle | Control options and data-schema-driven dispatch; OTP length constraints remain in the data schema |
|
|
54
|
+
| Enum, oneOf choices, radio, enum arrays, chips, multiselect | Choice options, variants, suggestions and array behavior |
|
|
55
|
+
| Date, time, date-time, file | Display/save formats, views, bounds, restriction and file options |
|
|
56
|
+
| Objects, arrays/tables, expandable arrays, ListWithDetail | Details, summaries, labels, sorting, add/remove and validation indicators |
|
|
57
|
+
| Mixed, tuple, allOf/anyOf/oneOf and scalar composition | Shared Control vocabulary, detail schemas and confirmation settings |
|
|
58
|
+
| Color, cron, duration, mask, null | Extended control options and ordinary schema/registered-format validation |
|
|
59
|
+
| Monaco and AG Grid | Extended control options, editor settings and open vendor option bags |
|
|
60
|
+
| SplitLayout/splitter, Spacer, ImageView, Separator, Link | Extended element shapes and sizing |
|
|
61
|
+
| Button, TemplateLayout, Template, Slot, markup Label | Action/template fields, named composition, markup/security/interpolation settings |
|
|
62
|
+
| Base and extended cells | Cell overrides reuse known control-option shapes; registry availability still limits actual cell support |
|
|
63
|
+
| Core config | Defaults, read-only settings and version-specific separation setting |
|
|
64
|
+
|
|
65
|
+
No missing registered element discriminator was found. A renderer such as cron
|
|
66
|
+
is a specialized Control, not a separate UI element type. The portable sizing vocabulary uses layout options.
|
|
67
|
+
|
|
68
|
+
## Corrections made
|
|
69
|
+
|
|
70
|
+
1. Added [a standalone rule schema](../schemas/jsonforms-rule.schema.json). Both UI
|
|
71
|
+
profiles reference it.
|
|
72
|
+
2. Validate nested condition schemas against the standard draft-07 meta-schema.
|
|
73
|
+
Reject incomplete AND/OR/LEAF nodes even when a second condition shape would
|
|
74
|
+
otherwise let them pass. Allow core's empty AND/OR lists.
|
|
75
|
+
3. Reject serialized `condition.validate` strings. Core checks for a function;
|
|
76
|
+
it does not compile strings. Function conditions belong to trusted host code.
|
|
77
|
+
4. Type `readonly` in options on layout elements.
|
|
78
|
+
Add the core config read-only setting and the separation setting.
|
|
79
|
+
5. Type `showSortButtons` for array reordering.
|
|
80
|
+
6. Type confirmed flat renderer defaults for array presentation, descriptions
|
|
81
|
+
and choices. The follow-up audit removed global label-path, detail and summary
|
|
82
|
+
declarations: these are per-control inputs with only isolated merged-config
|
|
83
|
+
exceptions.
|
|
84
|
+
7. Check `vertical`, `showNavButtons`, and labels on Categorization. Require
|
|
85
|
+
Category or nested Categorization children, as core's model specifies.
|
|
86
|
+
8. Apply known control-option shapes inside extended `cells` overrides while
|
|
87
|
+
retaining the stricter cell detail shape.
|
|
88
|
+
9. Type flat Monaco/grid defaults and nested Monaco settings. The follow-up
|
|
89
|
+
removed unconsumed namespaced defaults and checked every named config
|
|
90
|
+
property against its consumer. Remove
|
|
91
|
+
unconsumed `rows` declarations: editor rows belong in `monaco.rows`. Remove
|
|
92
|
+
the unconstrained control `filter` declaration: observed `options.filter(...)`
|
|
93
|
+
calls filter arrays of choices; they do not read a UI authoring option.
|
|
94
|
+
|
|
95
|
+
## Implementation support
|
|
96
|
+
|
|
97
|
+
Renderer-specific audit findings and the configuration reader inventory are
|
|
98
|
+
maintained in the [React gap report](https://github.com/kchobantonov/jsonforms-react-renderers/blob/master/docs/jsonforms-react-antd-implementation-gaps.md).
|
|
99
|
+
Schema validation does not certify adapter support. Vendor settings remain open,
|
|
100
|
+
and portable proposals remain in [the design backlog](todo.md).
|
|
101
|
+
|
|
102
|
+
## Assessment of the older schema attempt
|
|
103
|
+
|
|
104
|
+
The separation of `rule.json`, `uischema.json` and `uischemas.json` was useful.
|
|
105
|
+
The standalone rule entry point is retained in the new package's naming scheme.
|
|
106
|
+
The old documents should not replace the current schemas:
|
|
107
|
+
|
|
108
|
+
- `rule.json`'s composite children reference only a loose base condition, so
|
|
109
|
+
malformed nested conditions pass. It lacks `failWhenUndefined` typing and the
|
|
110
|
+
newer READONLY/WRITABLE effects. Its arrow-function regex does not establish
|
|
111
|
+
that the host can or will execute a validation function.
|
|
112
|
+
- `uischema.json` restricts Control labels to strings although core also supports
|
|
113
|
+
booleans and label objects. Some branches, including Label and Category, omit
|
|
114
|
+
required fields; the Label branch can admit `{}`. Group unnecessarily requires
|
|
115
|
+
a label. Categorization omits rule/i18n/label and nested categorizations.
|
|
116
|
+
Broadly open options do not check the renderer vocabulary.
|
|
117
|
+
- `uischemas.json` does not require `tester` or `uischema`, so `[{}]` passes.
|
|
118
|
+
Its exact function-source regex rejects harmless formatting variants and
|
|
119
|
+
does not validate executable JavaScript. Current core ranked registries use
|
|
120
|
+
functions, not JSON strings. This package keeps those examples in `.mjs`;
|
|
121
|
+
their UI documents are validated separately. A serialized registry needs an
|
|
122
|
+
explicit host conversion contract before publishing a schema for it.
|
|
123
|
+
- `schema.json` republishes the draft-07 meta-schema under the standard `$id`.
|
|
124
|
+
The current package correctly uses the validator's standard meta-schema;
|
|
125
|
+
custom keywords/formats belong in the validator integration.
|
|
126
|
+
|
|
127
|
+
## Validation boundary
|
|
128
|
+
|
|
129
|
+
Regression cases cover standalone and attached rules, malformed nested schemas,
|
|
130
|
+
read-only settings, core config types, categorization, sorting flags, cells and
|
|
131
|
+
editor defaults. `pnpm run check` runs them together with all existing fixtures,
|
|
132
|
+
reference/link checks, the site build and the packed-consumer check. The tests
|
|
133
|
+
use bundled schemas and require neither source checkout nor a network request.
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
## Documentation ownership
|
|
137
|
+
|
|
138
|
+
The portable contract lives in [the specification](spec.md). Generic selection
|
|
139
|
+
roles are in [renderer selection](renderer-selection.md), and detailed host,
|
|
140
|
+
layout, editor, settings and acceptance requirements are in the
|
|
141
|
+
[renderer/demo guide](renderer-and-demo.md). TypeScript authoring is documented in
|
|
142
|
+
[its language guide](../typescript/README.md).
|
|
143
|
+
|
|
144
|
+
The original model, consolidated model, adjustments, and container-indicator
|
|
145
|
+
proposal were reconciled into these documents, schemas and examples. The detailed
|
|
146
|
+
renderer/demo requirements were promoted into the active guide; framework-specific
|
|
147
|
+
build tools and source filenames were replaced with neutral responsibilities.
|
|
148
|
+
Original source hashes and reconciliation decisions remain in `provenance.json`.
|
|
149
|
+
Redundant historical copies and the separate coverage map have been removed.
|
|
150
|
+
This reconciliation does not certify that every renderer implements every contract.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Conditional fields and graphical form authoring
|
|
2
|
+
|
|
3
|
+
## Runtime contract
|
|
4
|
+
|
|
5
|
+
Conditional presentation is opt-in: options.conditionalFields on an object
|
|
6
|
+
Control overrides config.jsonformsExtended.conditionalFields, default false.
|
|
7
|
+
Use an object Control at scope # to opt a whole root object into discovery.
|
|
8
|
+
Existing UI rules and validator behavior are unchanged when omitted.
|
|
9
|
+
|
|
10
|
+
Evaluate if against the current object using the host validator and original
|
|
11
|
+
reference context. Apply then if it matches and else otherwise; do not derive
|
|
12
|
+
activity from validation error lists. Conditions still apply in NoValidation.
|
|
13
|
+
An absent discriminator may satisfy properties alone: include required in if
|
|
14
|
+
when presence is intended. Never mutate data during condition evaluation.
|
|
15
|
+
|
|
16
|
+
Schema-valued Draft-07 dependencies activate on property presence, including
|
|
17
|
+
false, null and empty strings. Array-valued dependencies contribute required
|
|
18
|
+
markers, not new fields. Active allOf branches contribute conjunctively.
|
|
19
|
+
Base fields remain visible; active branches may change their required markers.
|
|
20
|
+
Inactive branch-only fields disappear without data deletion or default insertion.
|
|
21
|
+
Retained inactive properties are reserved from the additional-property editor.
|
|
22
|
+
|
|
23
|
+
Only the presentation schema is projected. Original document validation remains
|
|
24
|
+
authoritative, including additionalProperties and branch constraints. Projection
|
|
25
|
+
must retain overlapping property constraints rather than replace earlier ones.
|
|
26
|
+
Do not flatten the original schema or save the projection as the authored schema.
|
|
27
|
+
Conditions which cannot compile must show a diagnostic rather than silently
|
|
28
|
+
activate else. Recursive schema traversal must terminate.
|
|
29
|
+
|
|
30
|
+
## Placement and reuse
|
|
31
|
+
|
|
32
|
+
Generated object details include active properties. Explicit detail layouts and
|
|
33
|
+
registered layouts keep their authored order and containers; ordinary Control
|
|
34
|
+
scopes bind against the active object schema. Inactive branch-only bindings are
|
|
35
|
+
omitted. Group fields wherever desired, including tabs and columns. No special
|
|
36
|
+
additional-properties collection is required. Empty authored containers are kept.
|
|
37
|
+
Standard detail GENERATE/REGISTERED/inline semantics remain in effect.
|
|
38
|
+
|
|
39
|
+
The implemented first slice discovers properties, required names, if/then/else,
|
|
40
|
+
allOf and Draft-07 dependencies at each rendered object boundary. It does not
|
|
41
|
+
infer fields from not, contains or alternatives inside anyOf/oneOf. Arbitrary
|
|
42
|
+
remote references, nested $id rebasing and contradictory editor constraints
|
|
43
|
+
are not certified. Branch ownership under reusable Template/Slot models is not
|
|
44
|
+
filtered by this first slice; author branch fields directly in the detail layout.
|
|
45
|
+
|
|
46
|
+
## Graphical editor contract
|
|
47
|
+
|
|
48
|
+
These requirements describe authoring behavior; no graphical editor is shipped
|
|
49
|
+
by this feature. Keep JSON Schema validation and UI-schema placement separate.
|
|
50
|
+
|
|
51
|
+
- Drag/reorder controls between groups, columns and tabs by changing layout
|
|
52
|
+
elements only. Preserve scope, options, rules, name and unknown properties.
|
|
53
|
+
- Present a field palette with schema-pointer origins (base, then, else,
|
|
54
|
+
dependency). A property may have several origins; do not duplicate its data.
|
|
55
|
+
- Allow selection of an inactive branch for layout editing. Branch preview is
|
|
56
|
+
editor state, never a mutation of runtime data, config or validation results.
|
|
57
|
+
- Store explicit positions as ordinary detail layouts. Bind to the property
|
|
58
|
+
scope, not a then/else schema pointer which would change the data path.
|
|
59
|
+
- Distinguish conditional requiredness from visibility; base fields need explicit
|
|
60
|
+
UI rules if authors want them hidden. Do not copy a schema condition into a UI
|
|
61
|
+
rule automatically and create two independently editable sources of truth.
|
|
62
|
+
- Preserve unknown JSON during round trips. Provide an advanced JSON panel for
|
|
63
|
+
unsupported keywords rather than discarding them.
|
|
64
|
+
- Stable selection/undo identities belong to editor state until a portable
|
|
65
|
+
identity contract is adopted. Do not repurpose name: Template/Slot use it for
|
|
66
|
+
runtime lookup. Do not serialize editor-only identifiers into validation data.
|
|
67
|
+
- Expose container capabilities for drop validation: layouts accept elements,
|
|
68
|
+
categories belong to categorizations, detail layouts use the edited value's
|
|
69
|
+
scope, and a Slot fallback uses one layout to hold multiple controls.
|
|
70
|
+
|
|
71
|
+
## Follow-up priorities
|
|
72
|
+
|
|
73
|
+
1. More conditional compositions and named-template placement coverage.
|
|
74
|
+
2. contains matching-item feedback and property-dependency explanations.
|
|
75
|
+
3. not as forbidden-combination guidance and a condition-builder operator, never
|
|
76
|
+
positive field discovery from a negated schema.
|
|
77
|
+
4. Explicit default/example actions and false-schema explanations.
|
|
78
|
+
|
|
79
|
+
See [conditional-fields](../examples/conditional-fields/README.md). Each renderer
|
|
80
|
+
project records its own support and acceptance evidence.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Draft-07 visual authoring checklist
|
|
2
|
+
|
|
3
|
+
JSON Schema validation and visual authoring are separate capabilities. A
|
|
4
|
+
renderer may validate a document that its controls cannot create or edit.
|
|
5
|
+
Each renderer project should publish a capability table and executed tests for
|
|
6
|
+
the Draft-07 features it supports. No renderer can create a valid instance of
|
|
7
|
+
an unsatisfiable schema, including the boolean schema `false`.
|
|
8
|
+
|
|
9
|
+
## Editing cases to verify
|
|
10
|
+
|
|
11
|
+
| Feature | Acceptance question |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| Scalars, null, type arrays, omitted type | Can the user reach every applicable JSON type, including null and unconstrained values? |
|
|
14
|
+
| Properties and nested objects | Do generated and explicit details expose static and dynamic fields together? |
|
|
15
|
+
| additionalProperties, propertyNames, patternProperties | Can users add, rename, delete and edit literal keys, including empty keys? Do all matching patterns constrain a property? |
|
|
16
|
+
| Homogeneous and tuple arrays | Can users edit items while preserving tuple positions and additionalItems semantics? |
|
|
17
|
+
| enum and const | Do choices preserve object/array values and JSON types after reload? |
|
|
18
|
+
| allOf, anyOf, oneOf | Does the editor preserve composition, expose applicable branches and retain document validation? |
|
|
19
|
+
| if / then / else and dependencies | Does field discovery follow the active condition without rewriting the validator schema? |
|
|
20
|
+
| $ref, $id, definitions and recursion | Are local references resolved in scope, and are recursive children created one at a time? |
|
|
21
|
+
| readOnly, writeOnly, formats and content keywords | Are supported presentation, editing and security effects documented separately? |
|
|
22
|
+
|
|
23
|
+
Bounds, length, pattern, counts, uniqueness, required names and dependencies
|
|
24
|
+
may use ordinary editors with correctly located validation feedback. `not` and
|
|
25
|
+
`contains` need not have dedicated widgets, but the underlying value shape
|
|
26
|
+
must remain editable where the schema permits it. Arbitrary remote reference
|
|
27
|
+
retrieval is a host capability, not an implicit renderer guarantee.
|
|
28
|
+
|
|
29
|
+
## Metaschema example
|
|
30
|
+
|
|
31
|
+
[Draft-07 metaschema](../examples/draft-07-metaschema/README.md) uses the upstream
|
|
32
|
+
document as its schema and a sample inventory JSON Schema as data. Its type
|
|
33
|
+
array, recursive references, arbitrary default/const values, schema maps and
|
|
34
|
+
composition arrays exercise multiple editing paths. Rendering the sample
|
|
35
|
+
without a missing-renderer fallback is only an initial check. Test nested
|
|
36
|
+
interactions, editing from an empty value, browser layout, and reference scope
|
|
37
|
+
separately. A schema document can pass metaschema validation while containing
|
|
38
|
+
unresolved references or an unsatisfiable combination.
|
|
39
|
+
|
|
40
|
+
For normative semantics, see [the specification](spec.md),
|
|
41
|
+
[implementation guidance](implementation-guide.md), and
|
|
42
|
+
[pitfalls](implementation-pitfalls.md). Renderer projects record their own
|
|
43
|
+
support and executed evidence.
|