@chobantonov/jsonforms-extended-spec 0.0.0-stage → 0.3.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.
Files changed (366) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +126 -2
  3. package/conformance/authoring.json +2680 -0
  4. package/conformance/behavior.json +1602 -0
  5. package/conformance/config-consumption.json +1542 -0
  6. package/conformance/expected-invalid.json +20 -0
  7. package/docs/audit.md +150 -0
  8. package/docs/conditional-fields.md +122 -0
  9. package/docs/draft-07-visual-support.md +43 -0
  10. package/docs/external-resources-proposal.md +536 -0
  11. package/docs/implementation-guide.md +233 -0
  12. package/docs/implementation-pitfalls.md +968 -0
  13. package/docs/implementation-web-typescript.md +41 -0
  14. package/docs/renderer-and-demo.md +1347 -0
  15. package/docs/renderer-selection.md +99 -0
  16. package/docs/spec.md +8470 -0
  17. package/docs/todo.md +166 -0
  18. package/examples/README.md +127 -0
  19. package/examples/additional-errors/README.md +176 -0
  20. package/examples/additional-errors/config.json +3 -0
  21. package/examples/additional-errors/data.json +11 -0
  22. package/examples/additional-errors/schema.json +56 -0
  23. package/examples/additional-errors/translations.json +64 -0
  24. package/examples/additional-errors/uischema.json +158 -0
  25. package/examples/additional-items-pagination/README.md +8 -0
  26. package/examples/additional-items-pagination/config.json +10 -0
  27. package/examples/additional-items-pagination/data.json +22 -0
  28. package/examples/additional-items-pagination/schema.json +30 -0
  29. package/examples/additional-items-pagination/translations.json +16 -0
  30. package/examples/additional-items-pagination/uischema.json +39 -0
  31. package/examples/additional-properties/README.md +203 -0
  32. package/examples/additional-properties/config.json +5 -0
  33. package/examples/additional-properties/data.json +31 -0
  34. package/examples/additional-properties/schema.json +78 -0
  35. package/examples/additional-properties/translations.json +80 -0
  36. package/examples/additional-properties/uischema.json +104 -0
  37. package/examples/ag-grid/README.md +62 -0
  38. package/examples/ag-grid/config.json +14 -0
  39. package/examples/ag-grid/data.json +124 -0
  40. package/examples/ag-grid/schema.json +48 -0
  41. package/examples/ag-grid/translations.json +58 -0
  42. package/examples/ag-grid/uischema.json +671 -0
  43. package/examples/array-choices/README.md +150 -0
  44. package/examples/array-choices/config.json +4 -0
  45. package/examples/array-choices/data.json +10 -0
  46. package/examples/array-choices/schema.json +68 -0
  47. package/examples/array-choices/translations.json +64 -0
  48. package/examples/array-choices/uischema.json +97 -0
  49. package/examples/array-controls/README.md +237 -0
  50. package/examples/array-controls/config.json +4 -0
  51. package/examples/array-controls/data.json +147 -0
  52. package/examples/array-controls/schema.json +374 -0
  53. package/examples/array-controls/translations.json +186 -0
  54. package/examples/array-controls/uischema.json +685 -0
  55. package/examples/array-detail-modes/README.md +11 -0
  56. package/examples/array-detail-modes/data.json +38 -0
  57. package/examples/array-detail-modes/schema.json +89 -0
  58. package/examples/array-detail-modes/translations.json +36 -0
  59. package/examples/array-detail-modes/uischema.json +73 -0
  60. package/examples/array-detail-modes/uischemas.d.mts +2 -0
  61. package/examples/array-detail-modes/uischemas.json +15 -0
  62. package/examples/boolean-controls/README.md +109 -0
  63. package/examples/boolean-controls/config.json +3 -0
  64. package/examples/boolean-controls/data.json +27 -0
  65. package/examples/boolean-controls/schema.json +98 -0
  66. package/examples/boolean-controls/translations.json +94 -0
  67. package/examples/boolean-controls/uischema.json +126 -0
  68. package/examples/button-actions/README.md +259 -0
  69. package/examples/button-actions/config.json +7 -0
  70. package/examples/button-actions/data.json +5 -0
  71. package/examples/button-actions/host.mjs +14 -0
  72. package/examples/button-actions/schema.json +20 -0
  73. package/examples/button-actions/translations.json +60 -0
  74. package/examples/button-actions/uischema.json +179 -0
  75. package/examples/catalog.json +634 -0
  76. package/examples/categorization/README.md +132 -0
  77. package/examples/categorization/config.json +7 -0
  78. package/examples/categorization/data.json +8 -0
  79. package/examples/categorization/schema.json +29 -0
  80. package/examples/categorization/translations.json +72 -0
  81. package/examples/categorization/uischema.json +288 -0
  82. package/examples/choice-controls/README.md +136 -0
  83. package/examples/choice-controls/config.json +10 -0
  84. package/examples/choice-controls/data.json +61 -0
  85. package/examples/choice-controls/schema.json +406 -0
  86. package/examples/choice-controls/translations.json +154 -0
  87. package/examples/choice-controls/uischema.json +575 -0
  88. package/examples/choice-controls/uischemas.d.mts +2 -0
  89. package/examples/choice-controls/uischemas.json +16 -0
  90. package/examples/code-editor/README.md +74 -0
  91. package/examples/code-editor/data.json +8 -0
  92. package/examples/code-editor/schema.json +28 -0
  93. package/examples/code-editor/translations.json +20 -0
  94. package/examples/code-editor/uischema.json +77 -0
  95. package/examples/collection-pagination/README.md +5 -0
  96. package/examples/collection-pagination/config.json +1 -0
  97. package/examples/collection-pagination/data.json +64 -0
  98. package/examples/collection-pagination/schema.json +23 -0
  99. package/examples/collection-pagination/translations.json +14 -0
  100. package/examples/collection-pagination/uischema.json +14 -0
  101. package/examples/color-control/README.md +154 -0
  102. package/examples/color-control/config.json +7 -0
  103. package/examples/color-control/data.json +11 -0
  104. package/examples/color-control/schema.json +61 -0
  105. package/examples/color-control/translations.json +76 -0
  106. package/examples/color-control/uischema.json +106 -0
  107. package/examples/combinators/README.md +223 -0
  108. package/examples/combinators/config.json +9 -0
  109. package/examples/combinators/data.json +23 -0
  110. package/examples/combinators/schema.json +232 -0
  111. package/examples/combinators/translations.json +178 -0
  112. package/examples/combinators/uischema.json +158 -0
  113. package/examples/conditional-fields/README.md +27 -0
  114. package/examples/conditional-fields/config.json +5 -0
  115. package/examples/conditional-fields/data.json +7 -0
  116. package/examples/conditional-fields/schema.json +59 -0
  117. package/examples/conditional-fields/translations.json +32 -0
  118. package/examples/conditional-fields/uischema.json +131 -0
  119. package/examples/container-validation-indicator/README.md +187 -0
  120. package/examples/container-validation-indicator/config.json +9 -0
  121. package/examples/container-validation-indicator/data.json +68 -0
  122. package/examples/container-validation-indicator/schema.json +222 -0
  123. package/examples/container-validation-indicator/translations.json +120 -0
  124. package/examples/container-validation-indicator/uischema.json +98 -0
  125. package/examples/cron-control/README.md +155 -0
  126. package/examples/cron-control/data.json +15 -0
  127. package/examples/cron-control/schema.json +72 -0
  128. package/examples/cron-control/translations.json +80 -0
  129. package/examples/cron-control/uischema.json +91 -0
  130. package/examples/destructive-confirmation/README.md +210 -0
  131. package/examples/destructive-confirmation/config.json +17 -0
  132. package/examples/destructive-confirmation/data.json +86 -0
  133. package/examples/destructive-confirmation/schema.json +204 -0
  134. package/examples/destructive-confirmation/translations.json +112 -0
  135. package/examples/destructive-confirmation/uischema.json +105 -0
  136. package/examples/draft-07-metaschema/README.md +11 -0
  137. package/examples/draft-07-metaschema/config.json +3 -0
  138. package/examples/draft-07-metaschema/data.json +25 -0
  139. package/examples/draft-07-metaschema/schema.json +172 -0
  140. package/examples/draft-07-metaschema/translations.json +10 -0
  141. package/examples/draft-07-metaschema/uischema.json +14 -0
  142. package/examples/dynamic-playground/README.md +95 -0
  143. package/examples/dynamic-playground/config.json +8 -0
  144. package/examples/dynamic-playground/configuration.json +152 -0
  145. package/examples/dynamic-playground/data.json +15 -0
  146. package/examples/dynamic-playground/dynamic-uischema.json +379 -0
  147. package/examples/dynamic-playground/host.mjs +37 -0
  148. package/examples/dynamic-playground/schema.json +48 -0
  149. package/examples/dynamic-playground/translations.json +76 -0
  150. package/examples/dynamic-playground/uischema.json +36 -0
  151. package/examples/editor-details/README.md +10 -0
  152. package/examples/editor-details/data.json +18 -0
  153. package/examples/editor-details/schema.json +49 -0
  154. package/examples/editor-details/translations.json +28 -0
  155. package/examples/editor-details/uischema.json +53 -0
  156. package/examples/editor-details/uischemas.d.mts +2 -0
  157. package/examples/editor-details/uischemas.json +14 -0
  158. package/examples/file-control/README.md +108 -0
  159. package/examples/file-control/data.json +28 -0
  160. package/examples/file-control/schema.json +89 -0
  161. package/examples/file-control/translations.json +46 -0
  162. package/examples/file-control/uischema.json +152 -0
  163. package/examples/group-layout/README.md +149 -0
  164. package/examples/group-layout/config.json +10 -0
  165. package/examples/group-layout/data.json +9 -0
  166. package/examples/group-layout/schema.json +51 -0
  167. package/examples/group-layout/translations.json +62 -0
  168. package/examples/group-layout/uischema.json +249 -0
  169. package/examples/index.d.ts +17 -0
  170. package/examples/index.js +69 -0
  171. package/examples/input-adornments/README.md +68 -0
  172. package/examples/input-adornments/data.json +41 -0
  173. package/examples/input-adornments/schema.json +207 -0
  174. package/examples/input-adornments/translations.json +106 -0
  175. package/examples/input-adornments/uischema.json +695 -0
  176. package/examples/job-application/README.md +23 -0
  177. package/examples/job-application/config.json +10 -0
  178. package/examples/job-application/data.json +68 -0
  179. package/examples/job-application/schema.json +196 -0
  180. package/examples/job-application/translations.json +388 -0
  181. package/examples/job-application/uischema.json +218 -0
  182. package/examples/job-application/uischemas.json +153 -0
  183. package/examples/json-editor/README.md +28 -0
  184. package/examples/json-editor/schema.json +1 -0
  185. package/examples/json-editor/translations.json +10 -0
  186. package/examples/json-editor/uischema.json +16 -0
  187. package/examples/json-inference/README.md +33 -0
  188. package/examples/json-inference/translations.json +10 -0
  189. package/examples/json-inference/uischema.json +16 -0
  190. package/examples/kitchen-sink/README.md +86 -0
  191. package/examples/kitchen-sink/config.json +14 -0
  192. package/examples/kitchen-sink/data.json +263 -0
  193. package/examples/kitchen-sink/invalid-data.json +263 -0
  194. package/examples/kitchen-sink/schema.json +515 -0
  195. package/examples/kitchen-sink/translations.json +270 -0
  196. package/examples/kitchen-sink/uischema.json +722 -0
  197. package/examples/label-interpolation/README.md +241 -0
  198. package/examples/label-interpolation/config.json +14 -0
  199. package/examples/label-interpolation/data.json +13 -0
  200. package/examples/label-interpolation/schema.json +64 -0
  201. package/examples/label-interpolation/translations.json +94 -0
  202. package/examples/label-interpolation/uischema.json +379 -0
  203. package/examples/layout-sizing/README.md +162 -0
  204. package/examples/layout-sizing/config.json +10 -0
  205. package/examples/layout-sizing/data.json +14 -0
  206. package/examples/layout-sizing/schema.json +58 -0
  207. package/examples/layout-sizing/translations.json +42 -0
  208. package/examples/layout-sizing/uischema.json +558 -0
  209. package/examples/markup-label/README.md +109 -0
  210. package/examples/markup-label/config.json +16 -0
  211. package/examples/markup-label/data.json +5 -0
  212. package/examples/markup-label/schema.json +24 -0
  213. package/examples/markup-label/translations.json +40 -0
  214. package/examples/markup-label/uischema.json +149 -0
  215. package/examples/mixed-control/README.md +164 -0
  216. package/examples/mixed-control/config.json +11 -0
  217. package/examples/mixed-control/data.json +70 -0
  218. package/examples/mixed-control/schema.json +221 -0
  219. package/examples/mixed-control/translations.json +158 -0
  220. package/examples/mixed-control/uischema.json +211 -0
  221. package/examples/null-control/README.md +111 -0
  222. package/examples/null-control/config.json +4 -0
  223. package/examples/null-control/data.json +6 -0
  224. package/examples/null-control/schema.json +36 -0
  225. package/examples/null-control/translations.json +42 -0
  226. package/examples/null-control/uischema.json +56 -0
  227. package/examples/numeric-controls/README.md +94 -0
  228. package/examples/numeric-controls/config.json +4 -0
  229. package/examples/numeric-controls/data.json +8 -0
  230. package/examples/numeric-controls/schema.json +52 -0
  231. package/examples/numeric-controls/translations.json +56 -0
  232. package/examples/numeric-controls/uischema.json +77 -0
  233. package/examples/object-control/README.md +220 -0
  234. package/examples/object-control/config.json +4 -0
  235. package/examples/object-control/data.json +62 -0
  236. package/examples/object-control/schema.json +252 -0
  237. package/examples/object-control/translations.json +160 -0
  238. package/examples/object-control/uischema.json +275 -0
  239. package/examples/object-control/uischemas.d.mts +2 -0
  240. package/examples/object-control/uischemas.json +59 -0
  241. package/examples/password-control/README.md +119 -0
  242. package/examples/password-control/config.json +3 -0
  243. package/examples/password-control/data.json +18 -0
  244. package/examples/password-control/schema.json +65 -0
  245. package/examples/password-control/translations.json +64 -0
  246. package/examples/password-control/uischema.json +94 -0
  247. package/examples/pre-touch-errors/README.md +176 -0
  248. package/examples/pre-touch-errors/config.json +4 -0
  249. package/examples/pre-touch-errors/data.json +5 -0
  250. package/examples/pre-touch-errors/schema.json +56 -0
  251. package/examples/pre-touch-errors/translations.json +68 -0
  252. package/examples/pre-touch-errors/uischema.json +85 -0
  253. package/examples/presentation/README.md +148 -0
  254. package/examples/presentation/config.json +9 -0
  255. package/examples/presentation/data.json +6 -0
  256. package/examples/presentation/schema.json +21 -0
  257. package/examples/presentation/translations.json +64 -0
  258. package/examples/presentation/uischema.json +210 -0
  259. package/examples/property-pagination/README.md +5 -0
  260. package/examples/property-pagination/config.json +1 -0
  261. package/examples/property-pagination/data.json +17 -0
  262. package/examples/property-pagination/schema.json +14 -0
  263. package/examples/property-pagination/translations.json +10 -0
  264. package/examples/property-pagination/uischema.json +24 -0
  265. package/examples/recursive-tree/README.md +49 -0
  266. package/examples/recursive-tree/config.json +1 -0
  267. package/examples/recursive-tree/data.json +40 -0
  268. package/examples/recursive-tree/schema.json +89 -0
  269. package/examples/recursive-tree/translations.json +42 -0
  270. package/examples/recursive-tree/uischema.json +84 -0
  271. package/examples/recursive-tree/uischemas.d.mts +2 -0
  272. package/examples/recursive-tree/uischemas.json +51 -0
  273. package/examples/split-layout/README.md +123 -0
  274. package/examples/split-layout/config.json +3 -0
  275. package/examples/split-layout/data.json +13 -0
  276. package/examples/split-layout/schema.json +50 -0
  277. package/examples/split-layout/translations.json +50 -0
  278. package/examples/split-layout/uischema.json +204 -0
  279. package/examples/string-controls/README.md +159 -0
  280. package/examples/string-controls/config.json +5 -0
  281. package/examples/string-controls/data.json +13 -0
  282. package/examples/string-controls/schema.json +70 -0
  283. package/examples/string-controls/translations.json +76 -0
  284. package/examples/string-controls/uischema.json +148 -0
  285. package/examples/table-row-details/README.md +69 -0
  286. package/examples/table-row-details/config.json +7 -0
  287. package/examples/table-row-details/data.json +280 -0
  288. package/examples/table-row-details/schema.json +61 -0
  289. package/examples/table-row-details/translations.json +56 -0
  290. package/examples/table-row-details/uischema.json +1303 -0
  291. package/examples/template-layout/README.md +250 -0
  292. package/examples/template-layout/config.json +9 -0
  293. package/examples/template-layout/data.json +20 -0
  294. package/examples/template-layout/host.mjs +13 -0
  295. package/examples/template-layout/schema.json +48 -0
  296. package/examples/template-layout/translations.json +70 -0
  297. package/examples/template-layout/uischema.json +177 -0
  298. package/examples/template-slots/README.md +19 -0
  299. package/examples/template-slots/data.json +4 -0
  300. package/examples/template-slots/schema.json +11 -0
  301. package/examples/template-slots/translations.json +26 -0
  302. package/examples/template-slots/uischema.json +47 -0
  303. package/examples/template-slots/uischemas.d.mts +2 -0
  304. package/examples/template-slots/uischemas.json +56 -0
  305. package/examples/temporal-controls/README.md +325 -0
  306. package/examples/temporal-controls/data.json +44 -0
  307. package/examples/temporal-controls/schema.json +208 -0
  308. package/examples/temporal-controls/translations.json +156 -0
  309. package/examples/temporal-controls/uischema.json +297 -0
  310. package/examples/tree-max-depth/README.md +5 -0
  311. package/examples/tree-max-depth/config.json +3 -0
  312. package/examples/tree-max-depth/data.json +31 -0
  313. package/examples/tree-max-depth/schema.json +258 -0
  314. package/examples/tree-max-depth/translations.json +42 -0
  315. package/examples/tree-max-depth/uischema.json +16 -0
  316. package/examples/tree-max-depth/uischemas.d.mts +2 -0
  317. package/examples/tree-max-depth/uischemas.json +50 -0
  318. package/examples/tuple-control/README.md +335 -0
  319. package/examples/tuple-control/config.json +4 -0
  320. package/examples/tuple-control/data.json +61 -0
  321. package/examples/tuple-control/schema.json +218 -0
  322. package/examples/tuple-control/translations.json +142 -0
  323. package/examples/tuple-control/uischema.json +128 -0
  324. package/examples/tuple-control/uischemas.d.mts +2 -0
  325. package/examples/tuple-control/uischemas.json +125 -0
  326. package/examples/validator-profile/README.md +197 -0
  327. package/examples/validator-profile/config.json +9 -0
  328. package/examples/validator-profile/data.json +16 -0
  329. package/examples/validator-profile/schema.json +139 -0
  330. package/examples/validator-profile/translations.json +34 -0
  331. package/examples/validator-profile/uischema.json +59 -0
  332. package/package.json +83 -3
  333. package/provenance.json +140 -0
  334. package/schemas/README.md +82 -0
  335. package/schemas/example.schema.json +37 -0
  336. package/schemas/jsonforms-config.schema.json +427 -0
  337. package/schemas/jsonforms-dynamic-uischema.schema.json +220 -0
  338. package/schemas/jsonforms-extended-config.schema.json +332 -0
  339. package/schemas/jsonforms-extended-uischema.schema.json +1932 -0
  340. package/schemas/jsonforms-rule.schema.json +104 -0
  341. package/schemas/jsonforms-uischema.schema.json +1434 -0
  342. package/typescript/README.md +546 -0
  343. package/typescript/lib/authoring/cssLength.d.ts +33 -0
  344. package/typescript/lib/authoring/cssLength.js +25 -0
  345. package/typescript/lib/authoring/dynamic.d.ts +73 -0
  346. package/typescript/lib/authoring/dynamic.js +8 -0
  347. package/typescript/lib/authoring/forSchema.d.ts +385 -0
  348. package/typescript/lib/authoring/forSchema.js +84 -0
  349. package/typescript/lib/authoring/schemaTypes.d.ts +111 -0
  350. package/typescript/lib/authoring/schemaTypes.js +15 -0
  351. package/typescript/lib/index.d.ts +4 -0
  352. package/typescript/lib/index.js +20 -0
  353. package/typescript/package.json +1 -0
  354. package/typescript/src/authoring/cssLength.ts +79 -0
  355. package/typescript/src/authoring/dynamic.ts +96 -0
  356. package/typescript/src/authoring/forSchema.ts +428 -0
  357. package/typescript/src/authoring/schemaTypes.ts +143 -0
  358. package/typescript/src/index.ts +4 -0
  359. package/typescript/test/schemaContract.test.ts +638 -0
  360. package/typescript/test/tsconfig.json +10 -0
  361. package/typescript/test/typedAuthoring.test.ts +151 -0
  362. package/typescript/test/typedAuthoringCoverage.test.ts +178 -0
  363. package/typescript/test/typedAuthoringCssLength.test.ts +81 -0
  364. package/typescript/test/typedAuthoringNames.test.ts +90 -0
  365. package/typescript/test/typedDynamic.test.ts +88 -0
  366. package/typescript/tsconfig.json +15 -0
@@ -0,0 +1,139 @@
1
+ {
2
+ "type": "object",
3
+ "title": "Course enrolment",
4
+ "properties": {
5
+ "fullName": {
6
+ "type": "string",
7
+ "title": "Full name",
8
+ "minLength": 3
9
+ },
10
+ "email": {
11
+ "type": "string",
12
+ "title": "Email",
13
+ "format": "email"
14
+ },
15
+ "seats": {
16
+ "type": "integer",
17
+ "title": "Seats",
18
+ "minimum": 1,
19
+ "maximum": 4
20
+ },
21
+ "reference": {
22
+ "type": "string",
23
+ "title": "Reference",
24
+ "pattern": "^[A-Z]{2}-[0-9]{4}$"
25
+ },
26
+ "tidy": {
27
+ "type": "object",
28
+ "title": "Normalised on validation",
29
+ "properties": {
30
+ "code": {
31
+ "type": "string",
32
+ "title": "Code (trimmed, upper-cased)",
33
+ "transform": ["trim", "toUpperCase"]
34
+ },
35
+ "town": {
36
+ "type": "string",
37
+ "title": "Town (start case)",
38
+ "transform": ["trim", "startCase"]
39
+ },
40
+ "note": {
41
+ "type": "string",
42
+ "title": "Note (capitalized)",
43
+ "transform": ["trim", "capitalize"]
44
+ },
45
+ "level": {
46
+ "type": "string",
47
+ "title": "Level (matched to a choice)",
48
+ "transform": ["trim", "toEnumCase"],
49
+ "enum": ["Beginner", "Intermediate", "Advanced"]
50
+ }
51
+ }
52
+ },
53
+ "defaults": {
54
+ "type": "object",
55
+ "title": "Filled in before you arrive",
56
+ "default": {},
57
+ "properties": {
58
+ "currency": {
59
+ "type": "string",
60
+ "title": "Currency (a plain default)",
61
+ "default": "EUR"
62
+ },
63
+ "confirmed": {
64
+ "type": "boolean",
65
+ "title": "Confirmed (a false default, preserved)",
66
+ "default": false
67
+ },
68
+ "opensOn": { "type": "string", "title": "Opens (today)" },
69
+ "closesOn": { "type": "string", "title": "Closes (in two weeks)" },
70
+ "requestedAt": { "type": "string", "title": "Requested at" },
71
+ "year": { "type": "integer", "title": "Year" }
72
+ },
73
+ "dynamicDefaults": {
74
+ "opensOn": { "func": "date", "args": {} },
75
+ "closesOn": { "func": "date", "args": { "duration": "P14D" } },
76
+ "requestedAt": { "func": "datetime", "args": {} },
77
+ "year": { "func": "dateUnit", "args": { "unit": "year" } }
78
+ }
79
+ },
80
+ "request": {
81
+ "type": "object",
82
+ "title": "Taken from the page address",
83
+ "default": {},
84
+ "properties": {
85
+ "ref": { "type": "string", "title": "ref" },
86
+ "campaign": { "type": "string", "title": "campaign" },
87
+ "source": { "type": "string", "title": "source" }
88
+ },
89
+ "dynamicDefaults": {
90
+ "ref": { "func": "searchParams", "args": { "param": "ref" } },
91
+ "campaign": {
92
+ "func": "searchParams",
93
+ "args": { "param": "campaign" }
94
+ },
95
+ "source": { "func": "searchParams", "args": { "param": "source" } }
96
+ }
97
+ },
98
+ "computed": {
99
+ "type": "object",
100
+ "title": "Computed by a function in the schema",
101
+ "default": {},
102
+ "properties": {
103
+ "greeting": { "type": "string", "title": "Greeting" }
104
+ },
105
+ "dynamicDefaults": {
106
+ "greeting": {
107
+ "func": "dynamic",
108
+ "args": {
109
+ "who": "student",
110
+ "func": "(args) => `Welcome, ${args.who}.`"
111
+ }
112
+ }
113
+ }
114
+ },
115
+ "spoken": {
116
+ "type": "object",
117
+ "title": "Messages written into the schema",
118
+ "properties": {
119
+ "nickname": { "type": "string", "title": "Nickname", "minLength": 2 },
120
+ "age": { "type": "integer", "title": "Age", "minimum": 16 },
121
+ "postcode": {
122
+ "type": "string",
123
+ "title": "Postcode",
124
+ "pattern": "^[0-9]{4}$"
125
+ }
126
+ },
127
+ "required": ["nickname"],
128
+ "errorMessage": {
129
+ "required": { "nickname": "nicknameRequired" },
130
+ "properties": {
131
+ "nickname": "nicknameTooShort",
132
+ "age": "tooYoung",
133
+ "postcode": "A postcode is four digits, like 1010."
134
+ }
135
+ }
136
+ }
137
+ },
138
+ "required": ["fullName"]
139
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "en": {
3
+ "intro.text": "Everything here is the validator, not the renderers. Switch the form's language and watch the messages change without a single error key in this catalog.",
4
+ "errorsTab.label": "Errors",
5
+ "transformTab.label": "transform",
6
+ "defaultsTab.label": "Defaults",
7
+ "messagesTab.label": "Messages in the schema",
8
+ "errors.text": "Ordinary keyword failures. The wording is Ajv's own, translated by ajv-i18n - this catalog defines no error text at all.",
9
+ "transform.text": "transform normalises the value as a side effect of validating. Blur a field and the stored data changes: trimmed, upper-cased, start-cased, or matched to the nearest declared choice.",
10
+ "defaults.text": "A schema default is written into the data on first validation - including false, which is why Confirmed stays unticked rather than being treated as missing. The four below it are computed: today, today plus two weeks, now, and this year.",
11
+ "request.text": "dynamicDefaults can read the page address, so an object field arrives holding the current request parameters. Add ?ref=AB-1234&campaign=spring to the URL and reload.",
12
+ "computed.text": "dynamic compiles a function written in the schema. It needs jsonformsExtended.security.allowScriptEvaluation, which this example grants; without it the field stays empty and the console says why.",
13
+ "messages.text": "These messages come from the schema, not from the validator. A message may be a catalog key - the first two are - or a sentence, which is used as written.",
14
+ "error.errorMessage.nicknameRequired": "Please choose a nickname.",
15
+ "error.errorMessage.nicknameTooShort": "A nickname needs at least two characters.",
16
+ "error.errorMessage.tooYoung": "Enrolment is open from 16."
17
+ },
18
+ "bg": {
19
+ "intro.text": "Всичко тук е на валидатора, а не на визуализаторите. Сменете езика на формуляра и вижте как съобщенията се променят без нито един ключ за грешка в този каталог.",
20
+ "errorsTab.label": "Грешки",
21
+ "transformTab.label": "transform",
22
+ "defaultsTab.label": "Стойности по подразбиране",
23
+ "messagesTab.label": "Съобщения в схемата",
24
+ "errors.text": "Обикновени нарушения на ключови думи. Текстът е на Ajv, преведен от ajv-i18n - този каталог не съдържа никакъв текст за грешки.",
25
+ "transform.text": "transform нормализира стойността като страничен ефект от валидирането. Напуснете полето и запазените данни се променят: изчистени, с главни букви или съпоставени с най-близкия обявен избор.",
26
+ "defaults.text": "Стойност по подразбиране от схемата се записва в данните при първото валидиране - включително false, затова Потвърдено остава неотметнато, вместо да се смята за липсващо. Четирите под него се изчисляват: днес, днес плюс две седмици, сега и тази година.",
27
+ "request.text": "dynamicDefaults може да чете адреса на страницата, така че обектно поле пристига със сегашните параметри на заявката. Добавете ?ref=AB-1234&campaign=spring към адреса и презаредете.",
28
+ "computed.text": "dynamic компилира функция, написана в схемата. Изисква jsonformsExtended.security.allowScriptEvaluation, което този пример дава; без него полето остава празно, а конзолата обяснява защо.",
29
+ "messages.text": "Тези съобщения идват от схемата, а не от валидатора. Съобщението може да е ключ от каталога - първите две са - или изречение, което се използва както е написано.",
30
+ "error.errorMessage.nicknameRequired": "Моля, изберете псевдоним.",
31
+ "error.errorMessage.nicknameTooShort": "Псевдонимът трябва да е поне два знака.",
32
+ "error.errorMessage.tooYoung": "Записването е от 16 години."
33
+ }
34
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "type": "VerticalLayout",
3
+ "options": { "gap": "1rem" },
4
+ "elements": [
5
+ { "type": "Label", "i18n": "intro" },
6
+ {
7
+ "type": "Categorization",
8
+ "elements": [
9
+ {
10
+ "type": "Category",
11
+ "name": "errors",
12
+ "i18n": "errorsTab",
13
+ "label": "Errors",
14
+ "elements": [
15
+ { "type": "Label", "i18n": "errors" },
16
+ { "type": "Control", "scope": "#/properties/fullName" },
17
+ { "type": "Control", "scope": "#/properties/email" },
18
+ { "type": "Control", "scope": "#/properties/seats" },
19
+ { "type": "Control", "scope": "#/properties/reference" }
20
+ ]
21
+ },
22
+ {
23
+ "type": "Category",
24
+ "name": "transform",
25
+ "i18n": "transformTab",
26
+ "label": "transform",
27
+ "elements": [
28
+ { "type": "Label", "i18n": "transform" },
29
+ { "type": "Control", "scope": "#/properties/tidy" }
30
+ ]
31
+ },
32
+ {
33
+ "type": "Category",
34
+ "name": "defaults",
35
+ "i18n": "defaultsTab",
36
+ "label": "Defaults",
37
+ "elements": [
38
+ { "type": "Label", "i18n": "defaults" },
39
+ { "type": "Control", "scope": "#/properties/defaults" },
40
+ { "type": "Label", "i18n": "request" },
41
+ { "type": "Control", "scope": "#/properties/request" },
42
+ { "type": "Label", "i18n": "computed" },
43
+ { "type": "Control", "scope": "#/properties/computed" }
44
+ ]
45
+ },
46
+ {
47
+ "type": "Category",
48
+ "name": "messages",
49
+ "i18n": "messagesTab",
50
+ "label": "Messages in the schema",
51
+ "elements": [
52
+ { "type": "Label", "i18n": "messages" },
53
+ { "type": "Control", "scope": "#/properties/spoken" }
54
+ ]
55
+ }
56
+ ]
57
+ }
58
+ ]
59
+ }
package/package.json CHANGED
@@ -1,6 +1,86 @@
1
1
  {
2
2
  "name": "@chobantonov/jsonforms-extended-spec",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.3.0",
4
+ "description": "Portable JSON Forms extended UI model specification, JSON schemas and examples",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/kchobantonov/jsonforms-extended-spec.git"
10
+ },
11
+ "homepage": "https://kchobantonov.github.io/jsonforms-extended-spec/",
12
+ "bugs": "https://github.com/kchobantonov/jsonforms-extended-spec/issues",
13
+ "engines": {
14
+ "node": ">=22"
15
+ },
16
+ "files": [
17
+ "schemas",
18
+ "examples",
19
+ "conformance",
20
+ "provenance.json",
21
+ "README.md",
22
+ "LICENSE",
23
+ "typescript",
24
+ "docs"
25
+ ],
26
+ "exports": {
27
+ "./package.json": "./package.json",
28
+ "./schemas/*": "./schemas/*",
29
+ "./examples/*": "./examples/*",
30
+ "./conformance/*": "./conformance/*",
31
+ "./typescript": {
32
+ "types": "./typescript/lib/index.d.ts",
33
+ "default": "./typescript/lib/index.js"
34
+ },
35
+ "./examples": {
36
+ "types": "./examples/index.d.ts",
37
+ "default": "./examples/index.js"
38
+ },
39
+ "./docs/*": "./docs/*"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "devDependencies": {
45
+ "@changesets/cli": "2.30.0",
46
+ "@jsonforms/core": "3.9.0-alpha.4",
47
+ "@types/node": "^18.19.130",
48
+ "ajv": "8.20.0",
49
+ "ajv-formats": "3.0.1",
50
+ "markdown-it": "14.3.2",
51
+ "typescript": "~4.9.5",
52
+ "vitest": "2.1.9"
53
+ },
54
+ "typesVersions": {
55
+ "*": {
56
+ "typescript": [
57
+ "typescript/lib/index.d.ts"
58
+ ],
59
+ "*": [
60
+ "*"
61
+ ]
62
+ }
63
+ },
64
+ "peerDependencies": {
65
+ "@jsonforms/core": "^3.9.0-alpha.2"
66
+ },
67
+ "peerDependenciesMeta": {
68
+ "@jsonforms/core": {
69
+ "optional": true
70
+ }
71
+ },
72
+ "scripts": {
73
+ "test": "pnpm run generate:examples && node --test test/*.test.mjs && pnpm run test:typescript",
74
+ "validate": "node scripts/validate.mjs",
75
+ "build": "pnpm run generate:examples && pnpm run build:typescript && pnpm run validate && node scripts/build-site.mjs",
76
+ "check": "pnpm run test && pnpm run build && pnpm run test:packed",
77
+ "release:pack": "node scripts/pack-release.mjs",
78
+ "test:packed": "node scripts/pack-release.mjs --test",
79
+ "changeset": "changeset",
80
+ "changeset:version": "changeset version",
81
+ "changeset:publish": "pnpm run check && changeset publish",
82
+ "build:typescript": "tsc -p typescript/tsconfig.json",
83
+ "test:typescript": "tsc -p typescript/test/tsconfig.json && vitest run typescript/test",
84
+ "generate:examples": "node scripts/generate-examples.mjs"
85
+ }
6
86
  }
@@ -0,0 +1,140 @@
1
+ {
2
+ "sourceRepository": "https://github.com/kchobantonov/jsonforms-react-renderers",
3
+ "sourceCommit": "e931e46c237f371dc283c291746640d653a32190",
4
+ "documents": [
5
+ {
6
+ "path": "docs/TODO.md",
7
+ "sha256": "9398c74e6f7d69c21bf4c757b8c20f46c17b914b6f79b953aa8035cf9d7c913f",
8
+ "role": "Historical implementation issues; not normative"
9
+ },
10
+ {
11
+ "path": "docs/jsonforms-consolidated-spec-record.md",
12
+ "sha256": "6a60dfcb44f4ad94f36fefdd7e62b662d2346541906da5d0d168783ea0143af7",
13
+ "role": "Consolidation provenance and known omissions"
14
+ },
15
+ {
16
+ "path": "docs/jsonforms-container-validation-indicator-spec.md",
17
+ "sha256": "73eabc5b7f03442627b84ff885a70670f9e0b13b5a13d6059ebdb7a78667852f",
18
+ "role": "Source contract reconciled in SPEC.md and schemas"
19
+ },
20
+ {
21
+ "path": "docs/jsonforms-extended-ui-model-adjustments.md",
22
+ "sha256": "38afab3b37b530c9ec2924f3a45ec79e15d8c7c79a284604d985a384190e153b",
23
+ "role": "Source contract reconciled in SPEC.md and schemas"
24
+ },
25
+ {
26
+ "path": "docs/jsonforms-extended-ui-model-consolidated-spec.md",
27
+ "sha256": "9e2c45a09cd9c3a7192349d9e5a68965b3e08484373ef671fd8744d6d2ebf297",
28
+ "role": "Source contract reconciled in SPEC.md and schemas"
29
+ },
30
+ {
31
+ "path": "docs/jsonforms-extended-ui-model-spec.md",
32
+ "sha256": "124a528c30c6c65b92b8a6a786fc739de8789e6bb545e4d768fefc699f68aa49",
33
+ "role": "Source contract reconciled in SPEC.md and schemas"
34
+ },
35
+ {
36
+ "path": "docs/jsonforms-react-antd-implementation-gaps.md",
37
+ "sha256": "0d72afe969794b24e82503957543b64bf929308961549f72bf03787632f36396",
38
+ "role": "Reference implementation coverage; not normative"
39
+ },
40
+ {
41
+ "path": "docs/renderer-common.md",
42
+ "sha256": "2a4398e88ad0805c78357798c1ea191feaf3374e607ed36e9901c17471825294",
43
+ "role": "Implementation architecture guidance"
44
+ },
45
+ {
46
+ "path": "docs/renderer-set-and-demo-specification.md",
47
+ "sha256": "559321841585004acc6f8d5003b09dfc50e02eb73d657ede4827318a6af195ca",
48
+ "role": "Source contract reconciled in SPEC.md and schemas"
49
+ },
50
+ {
51
+ "path": "docs/schemas/README.md",
52
+ "sha256": "fbb19fcde571afd6151017b8127e991e12bcca236127a62c5db431aee8508132",
53
+ "role": "Source contract reconciled in SPEC.md and schemas"
54
+ },
55
+ {
56
+ "path": "docs/schemas/jsonforms-config.schema.json",
57
+ "sha256": "c22aa5309675c93f03ecdeefd04b98d8334469fb83021d9326a6ad3aeb26f935",
58
+ "role": "Source contract reconciled in SPEC.md and schemas"
59
+ },
60
+ {
61
+ "path": "docs/schemas/jsonforms-extended-config.schema.json",
62
+ "sha256": "226caa1188e8b36630499fa1f8690d8c10b34b04ac0adbb173100bc4b1d4dfd9",
63
+ "role": "Source contract reconciled in SPEC.md and schemas"
64
+ },
65
+ {
66
+ "path": "docs/schemas/jsonforms-extended-uischema.schema.json",
67
+ "sha256": "d5db3453d3d1612bf32ff1c93af844a9a39cc8083c55ef56ac533a45e7819cac",
68
+ "role": "Source contract reconciled in SPEC.md and schemas"
69
+ },
70
+ {
71
+ "path": "docs/schemas/jsonforms-uischema.schema.json",
72
+ "sha256": "1d0e899f177ee2c140aa1f7a41b9dd4f80f8c1b200704150d5959ad9f5c3987f",
73
+ "role": "Source contract reconciled in SPEC.md and schemas"
74
+ },
75
+ {
76
+ "path": "docs/typed-form-authoring.md",
77
+ "sha256": "04e5d6f954769b3267938ef25ff91d2e3165f25471f57939a2326fb78fb13321",
78
+ "role": "Optional typed authoring guidance"
79
+ }
80
+ ],
81
+ "reconciliation": [
82
+ {
83
+ "topic": "Document roles",
84
+ "decision": "Portable contracts and accepted amendments consolidated; issue histories and implementation gaps retained only as provenance, not normative text."
85
+ },
86
+ {
87
+ "topic": "Interpolation",
88
+ "decision": "CEL profile replaces older ICU proposals; binding paths and expression own-key access are distinguished."
89
+ },
90
+ {
91
+ "topic": "Tuple detail",
92
+ "decision": "Tuple-wide options.detail places positions; registry position detail describes a dialog. options.layout only sizes a child."
93
+ },
94
+ {
95
+ "topic": "Color",
96
+ "decision": "Save formats hex, hex3, rgb and hsb, verified against renderer-common colorFormat.ts."
97
+ },
98
+ {
99
+ "topic": "OTP",
100
+ "decision": "Both schema length bounds are required; otherwise ordinary password presentation."
101
+ },
102
+ {
103
+ "topic": "File size",
104
+ "decision": "Use numeric UI format bounds in portable examples; schema-side numeric comparison requires a separate validator extension and is excluded from the Ajv-compatible data-schema authoring profile."
105
+ },
106
+ {
107
+ "topic": "Temporal restrictions",
108
+ "decision": "Picker selections enforce bounds under restrict. Complete typed range violations may commit with validation feedback; no silent clamping."
109
+ },
110
+ {
111
+ "topic": "Proposals",
112
+ "decision": "Timezone selectors remain non-normative. Dynamic overlay and pending-validity contracts do not imply reference implementation support."
113
+ },
114
+ {
115
+ "topic": "Release",
116
+ "decision": "Single public package; Changesets release PR/publish on master, Node 22, pnpm 10.28.2 and GitHub Pages, following jsonforms-svelte workflows."
117
+ },
118
+ {
119
+ "topic": "Temporal example dialect",
120
+ "decision": "Converted the isolated prefixItems tuple to equivalent draft-07 positional items; the entire fixture now uses one declared dialect with actual positional validation."
121
+ },
122
+ {
123
+ "topic": "Categorization accordion",
124
+ "decision": "At most one open category, including persistent explicit all-closed state, follows the accepted amendment and reference interaction."
125
+ },
126
+ {
127
+ "topic": "Neutral fixture names",
128
+ "decision": "Remaining pickup-related field names replaced with projectContact, officeCity and startsOn in the standalone examples."
129
+ }
130
+ ],
131
+ "additionalReconciliationNotes": [
132
+ "Retain the portable flat config.restrict spelling. Require host resolution before core defaults are injected; remove the former namespaced spelling rather than treating it as adapter compatibility.",
133
+ "Reconcile temporal text range feedback with picker prevention across both the shared restrict section and the temporal catalog.",
134
+ "Image-data opt-in admits SVG images in the reference URL policy; hosts may apply a narrower MIME policy.",
135
+ "Published schemas are limited to implemented authoring features. Removed the speculative $dynamic overlay vocabulary and vectors, reserved layout hints, unconsumed type-detail/dialog settings, and unverified read-only separation opt-in. TODO.md tracks design versus implementation work; the implemented Label interpolation dynamicValues gate remains.",
136
+ "Removed the custom data-schema meta-schema: use the standard JSON Schema meta-schema supplied by the validator. Custom extension keywords are not checked by standard meta-schema validation.",
137
+ "2026-09-27 source audit: all 15 hashes and all 32 example directories verified; 156 JSON assets accounted for. Added standalone rules and corrected core/config/option coverage. Core settings are described separately from renderer support. See AUDIT.md for evidence and remaining adapter differences.",
138
+ "Configuration follow-up: traced every previously declared config path. Removed 30 unsupported or misleading global declarations, added 9 confirmed config paths, and recorded evidence and merge behavior in conformance/config-consumption.json and AUDIT.md. Structural label/detail/summary/cell options remain local authoring choices despite isolated merged-config readers."
139
+ ]
140
+ }
@@ -0,0 +1,82 @@
1
+ # Authoring schemas
2
+
3
+ These schemas describe the published authoring subset of [spec.md](../docs/spec.md).
4
+ The explicitly provisional input-adornment authoring contract is also validated
5
+ here. Schema validation does not establish renderer support or visual behavior.
6
+ The accepted optional host styling contracts (`options.part` and
7
+ `jsonformsExtended.markup.textParamSpans`) are validated as well; their
8
+ platform-specific implementation and verification status is tracked separately.
9
+ Other provisional and unimplemented features
10
+ belong in [TODO.md](../docs/todo.md), not schema definitions.
11
+ They use draft-07 and preserve unknown options and namespaces. Core configuration
12
+ settings are also described even when a renderer does not implement their
13
+ presentation behavior; their descriptions state that boundary.
14
+
15
+ | File | Input |
16
+ | --- | --- |
17
+ | [jsonforms-uischema.schema.json](jsonforms-uischema.schema.json) | Common UI vocabulary |
18
+ | [jsonforms-extended-uischema.schema.json](jsonforms-extended-uischema.schema.json) | Published extended UI vocabulary |
19
+ | [jsonforms-config.schema.json](jsonforms-config.schema.json) | Common configuration |
20
+ | [jsonforms-extended-config.schema.json](jsonforms-extended-config.schema.json) | Extended configuration |
21
+ | [jsonforms-rule.schema.json](jsonforms-rule.schema.json) | Standalone serialized rule, also referenced by both UI profiles |
22
+ | [example.schema.json](example.schema.json) | Example catalog entries |
23
+
24
+ Register every file by its `$id` before compiling a profile. All `$ref` targets
25
+ are bundled, apart from the standard draft-07 meta-schema supplied by validators.
26
+ No remote lookup is needed. Use `allErrors: true` for useful authoring feedback;
27
+ leave `useDefaults`, coercion and removal of additional properties disabled.
28
+
29
+ The common UI profile restricts element types to its vocabulary. The extended
30
+ profile accepts unknown types for downstream registries while validating all
31
+ known elements recursively. Known option types are checked; unknown options are
32
+ retained, so spelling checks beyond the declared vocabulary belong in a linter.
33
+
34
+ Data-schema documents use the standard JSON Schema meta-schema supplied by Ajv.
35
+ This package does not publish a copy or an extended replacement. Custom keyword
36
+ validation and runtime behavior belong to the chosen validator integration.
37
+
38
+ Scope resolution, named-child lookup, CSS parsing, expressions, permission
39
+ checks and renderer interactions require semantic tests. See the separate
40
+ [behavior vectors](../conformance/behavior.json). Deliberate authoring failures in
41
+ examples are listed in [expected-invalid.json](../conformance/expected-invalid.json).
42
+
43
+ `$dynamic` is excluded from the published common/extended schemas and current
44
+ conformance vectors. The separate `jsonforms-dynamic-uischema.schema.json`
45
+ validates the experimental portable descriptor syntax only. Reserved
46
+ layout hints and unimplemented options are likewise omitted. Unknown extension
47
+ keys remain permitted for interoperability; this is not validation of their
48
+ shape or a promise of support. `dynamicValues.enabled` remains because Label
49
+ interpolation already uses it to gate access to data namespaces.
50
+
51
+ ## Standalone rules and runtime registries
52
+
53
+ Validate a rule JSON document directly with `jsonforms-rule.schema.json`, for
54
+ example:
55
+
56
+ ```json
57
+ {
58
+ "effect": "SHOW",
59
+ "condition": { "scope": "#/properties/enabled", "schema": { "const": true } }
60
+ }
61
+ ```
62
+
63
+ Both UI profiles reference this same schema.
64
+ Nested AND/OR conditions are checked recursively, including embedded draft-07
65
+ schemas. Empty AND and OR lists are valid core conditions (true and false,
66
+ respectively). READONLY and WRITABLE reflect the audited core 3.9.0-alpha.1;
67
+ hosts using an older core must check effect support.
68
+
69
+ Core's `validate` condition requires a JavaScript function. A string containing
70
+ function source is not a portable JSON rule and is rejected. Likewise, ranked
71
+ `uischemas` registry testers are functions; the worked registries use trusted
72
+ `.mjs` modules. A JSON registry containing tester strings needs a separately
73
+ specified host adapter; the old function-source regex is not such an adapter.
74
+
75
+ Known options inside cell overrides are checked as control options. This checks
76
+ their shape, not whether every renderer is available as a cell. Monaco and grid
77
+ vendor option bags remain open. Global declarations use traced config paths
78
+ or an explicitly accepted optional platform contract. The config-consumption
79
+ inventory marks the styling switch as pending verification rather than
80
+ claiming a traced renderer implementation. Keep field-dependent `elementLabelProp`,
81
+ `detail`, `summary` and `cells` on their controls; isolated merged-config readers
82
+ do not establish a common global default.
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://kchobantonov.github.io/jsonforms-extended-spec/schemas/example.schema.json",
4
+ "title": "Specification example catalog entry",
5
+ "type": "object",
6
+ "required": [
7
+ "id",
8
+ "title",
9
+ "files",
10
+ "hostRequirements"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "type": "string",
15
+ "pattern": "^[a-z][a-z0-9-]*$"
16
+ },
17
+ "title": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "files": {
22
+ "type": "array",
23
+ "uniqueItems": true,
24
+ "items": {
25
+ "type": "string",
26
+ "pattern": "^[a-z][a-z0-9-]*\\.json$"
27
+ }
28
+ },
29
+ "hostRequirements": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string"
33
+ }
34
+ }
35
+ },
36
+ "additionalProperties": false
37
+ }