@adobe/jsonschema2md 6.1.4 → 7.1.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 (296) hide show
  1. package/{.eslintrc.js → .eslintrc.cjs} +3 -17
  2. package/{.releaserc.js → .releaserc.cjs} +0 -0
  3. package/CHANGELOG.md +41 -0
  4. package/README.md +1 -1
  5. package/cli.js +1 -1
  6. package/lib/formatInfo.js +17 -19
  7. package/lib/formattingTools.js +6 -8
  8. package/lib/index.js +176 -81
  9. package/lib/keywords.js +2 -4
  10. package/lib/locales/nl-NL.json +182 -0
  11. package/lib/locales/update.js +2 -2
  12. package/lib/markdownBuilder.js +62 -44
  13. package/lib/readmeBuilder.js +15 -15
  14. package/lib/schemaProxy.js +32 -26
  15. package/lib/symbols.js +14 -2
  16. package/lib/traverseSchema.js +5 -5
  17. package/lib/writeMarkdown.js +87 -41
  18. package/lib/writeSchema.js +46 -21
  19. package/package.json +41 -30
  20. package/types/api.d.ts +72 -0
  21. package/types/formatInfo.d.ts +19 -0
  22. package/types/formattingTools.d.ts +2 -0
  23. package/types/index.d.ts +75 -0
  24. package/types/keywords.d.ts +2 -0
  25. package/types/markdownBuilder.d.ts +8 -0
  26. package/types/readmeBuilder.d.ts +5 -0
  27. package/types/schemaProxy.d.ts +1 -0
  28. package/types/symbols.d.ts +11 -0
  29. package/types/traverseSchema.d.ts +6 -0
  30. package/types/writeMarkdown.d.ts +56 -0
  31. package/types/writeSchema.d.ts +19 -0
  32. package/.circleci/config.yml +0 -83
  33. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -23
  34. package/.github/workflows/semantic-release.yaml +0 -55
  35. package/.github/workflows/semver-check.yaml +0 -16
  36. package/.renovaterc.json +0 -3
  37. package/.tidelift.yml +0 -32
  38. package/crowdin.yml +0 -4
  39. package/examples/abstract.md +0 -3
  40. package/examples/docs/README.md +0 -121
  41. package/examples/docs/abstract-definitions-first-properties-foo.md +0 -15
  42. package/examples/docs/abstract-definitions-first-properties-nonfoo.md +0 -23
  43. package/examples/docs/abstract-definitions-first.md +0 -66
  44. package/examples/docs/abstract-definitions-second-properties-bar.md +0 -15
  45. package/examples/docs/abstract-definitions-second.md +0 -39
  46. package/examples/docs/abstract-definitions.md +0 -15
  47. package/examples/docs/abstract.md +0 -104
  48. package/examples/docs/arrays-properties-boollist-items.md +0 -15
  49. package/examples/docs/arrays-properties-boollist.md +0 -19
  50. package/examples/docs/arrays-properties-coordinatelist-items-items.md +0 -21
  51. package/examples/docs/arrays-properties-coordinatelist-items.md +0 -21
  52. package/examples/docs/arrays-properties-coordinatelist.md +0 -19
  53. package/examples/docs/arrays-properties-intlist-items.md +0 -15
  54. package/examples/docs/arrays-properties-intlist.md +0 -21
  55. package/examples/docs/arrays-properties-jointypelist-items-oneof-0-properties-foo.md +0 -21
  56. package/examples/docs/arrays-properties-jointypelist-items-oneof-0.md +0 -45
  57. package/examples/docs/arrays-properties-jointypelist-items-oneof-1-properties-bar.md +0 -21
  58. package/examples/docs/arrays-properties-jointypelist-items-oneof-1.md +0 -45
  59. package/examples/docs/arrays-properties-jointypelist-items.md +0 -21
  60. package/examples/docs/arrays-properties-jointypelist.md +0 -15
  61. package/examples/docs/arrays-properties-list-items.md +0 -15
  62. package/examples/docs/arrays-properties-list.md +0 -15
  63. package/examples/docs/arrays-properties-listlist-items.md +0 -15
  64. package/examples/docs/arrays-properties-listlist.md +0 -15
  65. package/examples/docs/arrays-properties-numlist-items.md +0 -19
  66. package/examples/docs/arrays-properties-numlist.md +0 -19
  67. package/examples/docs/arrays-properties-objectlist-items-properties-a.md +0 -15
  68. package/examples/docs/arrays-properties-objectlist-items-properties-b.md +0 -15
  69. package/examples/docs/arrays-properties-objectlist-items.md +0 -58
  70. package/examples/docs/arrays-properties-objectlist.md +0 -15
  71. package/examples/docs/arrays-properties-stringlistlist-items-items.md +0 -15
  72. package/examples/docs/arrays-properties-stringlistlist-items.md +0 -15
  73. package/examples/docs/arrays-properties-stringlistlist.md +0 -15
  74. package/examples/docs/arrays-properties-tuple-items-negative-integer.md +0 -19
  75. package/examples/docs/arrays-properties-tuple-items-positive-integer.md +0 -19
  76. package/examples/docs/arrays-properties-tuple-zero.md +0 -23
  77. package/examples/docs/arrays-properties-tuple.md +0 -21
  78. package/examples/docs/arrays.md +0 -240
  79. package/examples/docs/complex-additionalproperties.md +0 -15
  80. package/examples/docs/complex-patternproperties-int.md +0 -15
  81. package/examples/docs/complex-patternproperties-str.md +0 -15
  82. package/examples/docs/complex-patternproperties.md +0 -15
  83. package/examples/docs/complex-properties-and-allof-0.md +0 -19
  84. package/examples/docs/complex-properties-and-allof-1.md +0 -19
  85. package/examples/docs/complex-properties-and.md +0 -21
  86. package/examples/docs/complex-properties-or-anyof-0.md +0 -15
  87. package/examples/docs/complex-properties-or-anyof-1.md +0 -19
  88. package/examples/docs/complex-properties-or.md +0 -21
  89. package/examples/docs/complex-properties-reflocalfiledef.md +0 -39
  90. package/examples/docs/complex-properties-refnestedobj-properties-refobj.md +0 -39
  91. package/examples/docs/complex-properties-refnestedobj.md +0 -39
  92. package/examples/docs/complex-properties-refobj.md +0 -39
  93. package/examples/docs/complex-properties-xor-oneof-0.md +0 -19
  94. package/examples/docs/complex-properties-xor-oneof-1.md +0 -19
  95. package/examples/docs/complex-properties-xor.md +0 -21
  96. package/examples/docs/complex.md +0 -285
  97. package/examples/docs/constants-properties-hello.md +0 -23
  98. package/examples/docs/constants.md +0 -47
  99. package/examples/docs/custom-allof-0.md +0 -15
  100. package/examples/docs/custom-allof-1.md +0 -39
  101. package/examples/docs/custom-allof-2.md +0 -39
  102. package/examples/docs/custom-definitions-first-properties-foo.md +0 -15
  103. package/examples/docs/custom-definitions-first-properties.md +0 -15
  104. package/examples/docs/custom-definitions-first.md +0 -39
  105. package/examples/docs/custom-definitions-second-properties-bar.md +0 -15
  106. package/examples/docs/custom-definitions-second-properties.md +0 -15
  107. package/examples/docs/custom-definitions-second.md +0 -39
  108. package/examples/docs/custom-definitions.md +0 -15
  109. package/examples/docs/custom.md +0 -85
  110. package/examples/docs/deepextending-allof-0.md +0 -49
  111. package/examples/docs/deepextending-allof-1.md +0 -89
  112. package/examples/docs/deepextending-allof-3.md +0 -39
  113. package/examples/docs/deepextending-definitions-fourth-properties-hey.md +0 -15
  114. package/examples/docs/deepextending-definitions-fourth-properties.md +0 -15
  115. package/examples/docs/deepextending-definitions-fourth.md +0 -39
  116. package/examples/docs/deepextending-definitions.md +0 -15
  117. package/examples/docs/deepextending.md +0 -57
  118. package/examples/docs/definitions-definitions-myid-properties-id-1.md +0 -19
  119. package/examples/docs/definitions-definitions-myid-properties-id.md +0 -19
  120. package/examples/docs/definitions-definitions-myid-properties-metaid.md +0 -19
  121. package/examples/docs/definitions-definitions-myid-properties.md +0 -15
  122. package/examples/docs/definitions-definitions-myid.md +0 -89
  123. package/examples/docs/definitions-definitions.md +0 -15
  124. package/examples/docs/definitions.md +0 -117
  125. package/examples/docs/enums-properties-enumerated-nested-properties-test.md +0 -25
  126. package/examples/docs/enums-properties-enumerated-nested.md +0 -49
  127. package/examples/docs/enums-properties-hello.md +0 -24
  128. package/examples/docs/enums.md +0 -67
  129. package/examples/docs/example-properties-bar.md +0 -25
  130. package/examples/docs/example-properties-foo.md +0 -21
  131. package/examples/docs/example.md +0 -83
  132. package/examples/docs/examples-properties-bar.md +0 -25
  133. package/examples/docs/examples-properties-foo.md +0 -21
  134. package/examples/docs/examples.md +0 -90
  135. package/examples/docs/extending-definitions-third-properties-baaaz.md +0 -21
  136. package/examples/docs/extending-definitions-third.md +0 -45
  137. package/examples/docs/extending-definitions.md +0 -15
  138. package/examples/docs/extending.md +0 -61
  139. package/examples/docs/extensible-definitions-first-properties-foo.md +0 -21
  140. package/examples/docs/extensible-definitions-first-properties.md +0 -15
  141. package/examples/docs/extensible-definitions-first.md +0 -45
  142. package/examples/docs/extensible-definitions-second-properties-bar.md +0 -25
  143. package/examples/docs/extensible-definitions-second-properties.md +0 -15
  144. package/examples/docs/extensible-definitions-second.md +0 -49
  145. package/examples/docs/extensible-definitions.md +0 -15
  146. package/examples/docs/extensible.md +0 -93
  147. package/examples/docs/identifiable-properties-id.md +0 -19
  148. package/examples/docs/identifiable.md +0 -43
  149. package/examples/docs/join-oneof-0-not-oneof-0-properties-foo.md +0 -21
  150. package/examples/docs/join-oneof-0-not-oneof-0.md +0 -45
  151. package/examples/docs/join-oneof-0-not-oneof-1-properties-bar.md +0 -21
  152. package/examples/docs/join-oneof-0-not-oneof-1.md +0 -45
  153. package/examples/docs/join-oneof-0-not.md +0 -21
  154. package/examples/docs/join-oneof-0.md +0 -23
  155. package/examples/docs/join-oneof-1-allof-0-properties-foo.md +0 -21
  156. package/examples/docs/join-oneof-1-allof-0.md +0 -45
  157. package/examples/docs/join-oneof-1.md +0 -19
  158. package/examples/docs/join-oneof-2-anyof-0-properties-bar.md +0 -21
  159. package/examples/docs/join-oneof-2-anyof-0.md +0 -45
  160. package/examples/docs/join-oneof-2.md +0 -19
  161. package/examples/docs/join.md +0 -33
  162. package/examples/docs/nestedobj-properties-settings-properties-collaborators-patternproperties-.md +0 -15
  163. package/examples/docs/nestedobj-properties-settings-properties-collaborators-patternproperties.md +0 -15
  164. package/examples/docs/nestedobj-properties-settings-properties-collaborators-properties-id.md +0 -15
  165. package/examples/docs/nestedobj-properties-settings-properties-collaborators.md +0 -58
  166. package/examples/docs/nestedobj-properties-settings.md +0 -39
  167. package/examples/docs/nestedobj.md +0 -39
  168. package/examples/docs/pattern-patternproperties-0-9.md +0 -21
  169. package/examples/docs/pattern-patternproperties.md +0 -15
  170. package/examples/docs/pattern.md +0 -45
  171. package/examples/docs/simple-properties-id.md +0 -19
  172. package/examples/docs/simple.md +0 -43
  173. package/examples/docs/simpletypes-properties-integer_threes.md +0 -23
  174. package/examples/docs/simpletypes-properties-interger_constrained.md +0 -19
  175. package/examples/docs/simpletypes-properties-interger_unconstrained.md +0 -15
  176. package/examples/docs/simpletypes-properties-number_constrained.md +0 -19
  177. package/examples/docs/simpletypes-properties-number_unconstrained.md +0 -15
  178. package/examples/docs/simpletypes-properties-string_date.md +0 -19
  179. package/examples/docs/simpletypes-properties-string_email.md +0 -19
  180. package/examples/docs/simpletypes-properties-string_hostname.md +0 -19
  181. package/examples/docs/simpletypes-properties-string_ipv4.md +0 -19
  182. package/examples/docs/simpletypes-properties-string_ipv6.md +0 -19
  183. package/examples/docs/simpletypes-properties-string_length.md +0 -31
  184. package/examples/docs/simpletypes-properties-string_pattern-metaenum.md +0 -15
  185. package/examples/docs/simpletypes-properties-string_pattern.md +0 -39
  186. package/examples/docs/simpletypes-properties-string_pattern_noexample.md +0 -25
  187. package/examples/docs/simpletypes-properties-string_pattern_singleexample.md +0 -31
  188. package/examples/docs/simpletypes-properties-string_unconstrained.md +0 -21
  189. package/examples/docs/simpletypes-properties-string_uri.md +0 -19
  190. package/examples/docs/simpletypes-properties-yesno.md +0 -15
  191. package/examples/docs/simpletypes.md +0 -455
  192. package/examples/docs/stabilizing-properties-id.md +0 -19
  193. package/examples/docs/stabilizing.md +0 -43
  194. package/examples/docs/subdir-allof-0.md +0 -43
  195. package/examples/docs/subdir-definitions-content-properties-id.md +0 -19
  196. package/examples/docs/subdir-definitions-content-properties.md +0 -15
  197. package/examples/docs/subdir-definitions-content.md +0 -43
  198. package/examples/docs/subdir-definitions.md +0 -15
  199. package/examples/docs/subdir.md +0 -55
  200. package/examples/docs/typearrays-properties-null.md +0 -15
  201. package/examples/docs/typearrays-properties-string-or-null.md +0 -15
  202. package/examples/docs/typearrays-properties-string-or-number-null.md +0 -15
  203. package/examples/docs/typearrays-properties-string-or-number.md +0 -15
  204. package/examples/docs/typearrays.md +0 -96
  205. package/examples/docsWithoutHeader/arrays.schema.md +0 -254
  206. package/examples/generated-schemas/abstract.schema.json +0 -1
  207. package/examples/generated-schemas/arrays.schema.json +0 -1
  208. package/examples/generated-schemas/complex.schema.json +0 -1
  209. package/examples/generated-schemas/constants.schema.json +0 -1
  210. package/examples/generated-schemas/custom.schema.json +0 -1
  211. package/examples/generated-schemas/deepextending.schema.json +0 -1
  212. package/examples/generated-schemas/definitions.schema.json +0 -1
  213. package/examples/generated-schemas/enums.schema.json +0 -1
  214. package/examples/generated-schemas/example.schema.json +0 -1
  215. package/examples/generated-schemas/examples.schema.json +0 -1
  216. package/examples/generated-schemas/extending.schema.json +0 -1
  217. package/examples/generated-schemas/extensible.schema.json +0 -1
  218. package/examples/generated-schemas/identifiable.schema.json +0 -1
  219. package/examples/generated-schemas/join.schema.json +0 -1
  220. package/examples/generated-schemas/nestedobj.schema.json +0 -1
  221. package/examples/generated-schemas/pattern.schema.json +0 -1
  222. package/examples/generated-schemas/simple.schema.json +0 -1
  223. package/examples/generated-schemas/simpletypes.schema.json +0 -1
  224. package/examples/generated-schemas/stabilizing.schema.json +0 -1
  225. package/examples/generated-schemas/subdir/subdir.schema.json +0 -1
  226. package/examples/generated-schemas/typearrays.schema.json +0 -1
  227. package/examples/schemas/abstract.schema.json +0 -44
  228. package/examples/schemas/arrays.schema.json +0 -185
  229. package/examples/schemas/complex.schema.json +0 -123
  230. package/examples/schemas/constants.schema.json +0 -25
  231. package/examples/schemas/custom.schema.json +0 -41
  232. package/examples/schemas/deepextending.schema.json +0 -37
  233. package/examples/schemas/definitions.description.md +0 -17
  234. package/examples/schemas/definitions.schema.json +0 -46
  235. package/examples/schemas/enums.schema.json +0 -42
  236. package/examples/schemas/example.example.1.json +0 -4
  237. package/examples/schemas/example.schema.json +0 -29
  238. package/examples/schemas/examples.example.1.json +0 -4
  239. package/examples/schemas/examples.example.2.json +0 -4
  240. package/examples/schemas/examples.schema.json +0 -32
  241. package/examples/schemas/extending.schema.json +0 -38
  242. package/examples/schemas/extensible.schema.json +0 -38
  243. package/examples/schemas/identifiable.schema.json +0 -22
  244. package/examples/schemas/join.schema.json +0 -88
  245. package/examples/schemas/nestedobj.schema.json +0 -35
  246. package/examples/schemas/pattern.schema.json +0 -21
  247. package/examples/schemas/simple.schema.json +0 -22
  248. package/examples/schemas/simpletypes.schema.json +0 -151
  249. package/examples/schemas/stabilizing.schema.json +0 -23
  250. package/examples/schemas/subdir/subdir.schema.json +0 -29
  251. package/examples/schemas/typearrays.schema.json +0 -39
  252. package/examples/status.md +0 -3
  253. package/test/api.test.js +0 -55
  254. package/test/cyclicSchemaIntegration.test.js +0 -87
  255. package/test/fixtures/additionalprops/additionalprops.schema.json +0 -6
  256. package/test/fixtures/additionalprops/arrays.schema.json +0 -9
  257. package/test/fixtures/arrays/arrays.schema.json +0 -201
  258. package/test/fixtures/arrays/tuple.schema.json +0 -35
  259. package/test/fixtures/content/html.schema.json +0 -5
  260. package/test/fixtures/content/jwt.schema.json +0 -26
  261. package/test/fixtures/content/png.schema.json +0 -6
  262. package/test/fixtures/cyclic/one.description.md +0 -1
  263. package/test/fixtures/cyclic/one.example.1.json +0 -1
  264. package/test/fixtures/cyclic/one.schema.json +0 -17
  265. package/test/fixtures/cyclic/three.schema.json +0 -17
  266. package/test/fixtures/cyclic/two.schema.json +0 -17
  267. package/test/fixtures/deadref/deadref.schema.json +0 -6
  268. package/test/fixtures/enums/arrayenums.schema.json +0 -29
  269. package/test/fixtures/enums/enums.schema.json +0 -29
  270. package/test/fixtures/example/example.schema.json +0 -52
  271. package/test/fixtures/format/format.schema.json +0 -25
  272. package/test/fixtures/identifiable/identifiable.schema.json +0 -22
  273. package/test/fixtures/not/not.schema.json +0 -7
  274. package/test/fixtures/null/null.schema.json +0 -14
  275. package/test/fixtures/nullable/array.schema.json +0 -17
  276. package/test/fixtures/readme-1/abstract.schema.json +0 -50
  277. package/test/fixtures/readme-1/complex.schema.json +0 -118
  278. package/test/fixtures/readme-1/simple.schema.json +0 -30
  279. package/test/fixtures/skipproperties/complete.schema.json +0 -29
  280. package/test/fixtures/stringformats/simpletypes.schema.json +0 -211
  281. package/test/fixtures/title/meta.schema.json +0 -53
  282. package/test/fixtures/type/button.schema.json +0 -28
  283. package/test/fixtures/type/type.schema.json +0 -20
  284. package/test/fixtures/types/merged.schema.json +0 -10
  285. package/test/fixtures/types/object.schema.json +0 -3
  286. package/test/fixtures/types/objectorarray.schema.json +0 -3
  287. package/test/fixtures/types/undefined.schema.json +0 -3
  288. package/test/fixtures/types/wrong.schema.json +0 -6
  289. package/test/formatting.test.js +0 -59
  290. package/test/markdownBuilder.test.js +0 -441
  291. package/test/readmeBuilder.test.js +0 -106
  292. package/test/schemaProxy.test.js +0 -187
  293. package/test/testUtils.js +0 -88
  294. package/test/testintegration.test.js +0 -65
  295. package/test/traverseSchema.test.js +0 -111
  296. package/test/zSchemaCoverage.test.js +0 -186
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "additionalProperties": true,
4
- "minProperties": 10,
5
- "maxProperties": 99
6
- }
@@ -1,9 +0,0 @@
1
- {
2
- "type": "array",
3
- "uniqueItems": true,
4
- "minContains": 1,
5
- "maxContains": 9,
6
- "contains": {
7
- "type": "boolean"
8
- }
9
- }
@@ -1,201 +0,0 @@
1
- {
2
- "meta:license": [
3
- "Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
4
- "This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
5
- "you may not use this file except in compliance with the License. You may obtain a copy",
6
- "of the License at http://www.apache.org/licenses/LICENSE-2.0"
7
- ],
8
- "$schema": "http://json-schema.org/draft-06/schema#",
9
- "$id": "https://example.com/schemas/arrays",
10
- "title": "Arrays",
11
- "type": "object",
12
- "description": "This is an example schema with examples for multiple array types and their constraints.",
13
- "properties": {
14
- "tuple": {
15
- "type": "array",
16
- "description": "This is an array of two values, one positive, one negative. All additional values must be 0.",
17
- "items": [
18
- {
19
- "title": "Positive Integer",
20
- "type": "integer",
21
- "minimum": 0
22
- },
23
- {
24
- "title": "Negative Integer",
25
- "type": "integer",
26
- "maximum": 0
27
- }
28
- ],
29
- "additionalItems": {
30
- "title": "Zero",
31
- "const": 0
32
- }
33
- },
34
- "list": {
35
- "type": "array",
36
- "description": "This is an array",
37
- "items": {
38
- "type": "string"
39
- },
40
- "version": "1.0.0",
41
- "testProperty": "test"
42
- },
43
- "listlist": {
44
- "type": "array",
45
- "description": "This is an array of arrays",
46
- "items": {
47
- "type": "array"
48
- },
49
- "version": "1.0.0",
50
- "testProperty": "test"
51
- },
52
- "stringlistlist": {
53
- "type": "array",
54
- "description": "This is an array of arrays of strings",
55
- "items": {
56
- "type": "array",
57
- "items": {
58
- "type": "string"
59
- }
60
- },
61
- "version": "1.0.0",
62
- "testProperty": "test"
63
- },
64
- "intlist": {
65
- "type": "array",
66
- "description": "This is an array",
67
- "items": {
68
- "type": "integer"
69
- },
70
- "maxItems": 10,
71
- "minItems": 1,
72
- "version": "1.0.0",
73
- "testProperty": "test"
74
- },
75
- "boollist": {
76
- "type": "array",
77
- "description": "This is an array",
78
- "items": {
79
- "type": "boolean"
80
- },
81
- "minItems": 1,
82
- "version": "1.0.0",
83
- "testProperty": "test"
84
- },
85
- "truefalseanylist": {
86
- "type": "array",
87
- "items": [
88
- { "const": true, "title": "True"},
89
- { "const": false, "title": "False"}
90
- ],
91
- "additionalItems": true
92
- },
93
- "truefalsewronglist": {
94
- "type": "array",
95
- "items": [
96
- { "const": true, "title": "True"},
97
- { "const": false, "title": "False"}
98
- ],
99
- "additionalItems": "this should not work"
100
- },
101
- "numlist": {
102
- "type": "array",
103
- "description": "This is an array",
104
- "items": {
105
- "type": "number",
106
- "minimum": 10
107
- },
108
- "maxItems": 10,
109
- "version": "1.0.0",
110
- "testProperty": "test"
111
- },
112
- "coordinatelist": {
113
- "type": "array",
114
- "description": "This is an array of coordinates in three-dimensional space.",
115
- "items": {
116
- "type": "array",
117
- "minItems": 3,
118
- "maxItems": 3,
119
- "description": "A coordinate, specified by `x`, `y`, and `z` values",
120
- "items": {
121
- "type": "number",
122
- "minimum": 0,
123
- "maximum": 10
124
- },
125
- "version": "1.0.0",
126
- "testProperty": "test"
127
- },
128
- "version": "1.0.0",
129
- "testProperty": "test",
130
- "maxItems": 10
131
- },
132
- "objectlist": {
133
- "type": "array",
134
- "description": "An array of simple objects",
135
- "items": {
136
- "type": "object",
137
- "required": [
138
- "a"
139
- ],
140
- "properties": {
141
- "a": {
142
- "type": "string",
143
- "description": "The a property",
144
- "version": "1.0.0",
145
- "testProperty": "test"
146
- },
147
- "b": {
148
- "type": "integer",
149
- "description": "The b property",
150
- "version": "1.0.0",
151
- "testProperty": "test"
152
- }
153
- }
154
- },
155
- "version": "1.0.0",
156
- "testProperty": "test"
157
- },
158
- "JoinTypelist": {
159
- "type": "array",
160
- "description": "An array of simple objects",
161
- "items": {
162
- "oneOf": [
163
- {
164
- "type": "object",
165
- "description": "A simple string.",
166
- "properties": {
167
- "foo": {
168
- "type": "string",
169
- "description": "A simple string.",
170
- "examples": [
171
- "hello"
172
- ],
173
- "version": "1.0.0",
174
- "testProperty": "test"
175
- }
176
- },
177
- "version": "1.0.0",
178
- "testProperty": "test"
179
- },
180
- {
181
- "type": "object",
182
- "description": "Another simple string.",
183
- "properties": {
184
- "bar": {
185
- "type": "string",
186
- "description": "A simple string.",
187
- "examples": [
188
- "world"
189
- ],
190
- "version": "1.0.0",
191
- "testProperty": "test"
192
- }
193
- }
194
- }
195
- ]
196
- },
197
- "version": "1.0.0",
198
- "testProperty": "test"
199
- }
200
- }
201
- }
@@ -1,35 +0,0 @@
1
- {
2
- "meta:license": [
3
- "Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
4
- "This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
5
- "you may not use this file except in compliance with the License. You may obtain a copy",
6
- "of the License at http://www.apache.org/licenses/LICENSE-2.0"
7
- ],
8
- "$schema": "http://json-schema.org/draft-06/schema#",
9
- "$id": "https://example.com/schemas/arrays",
10
- "title": "Arrays",
11
- "type": "object",
12
- "description": "This is an example schema with examples for multiple array types and their constraints.",
13
- "properties": {
14
- "tuple": {
15
- "type": "array",
16
- "description": "This is an array of two values, one positive, one negative. All additional values must be 0.",
17
- "items": [
18
- {
19
- "title": "Positive Integer",
20
- "type": "integer",
21
- "minimum": 0
22
- },
23
- {
24
- "title": "Negative Integer",
25
- "type": "integer",
26
- "maximum": 0
27
- }
28
- ],
29
- "additionalItems": {
30
- "title": "Zero",
31
- "const": 0
32
- }
33
- }
34
- }
35
- }
@@ -1,5 +0,0 @@
1
- {
2
- "type": "string",
3
- "title": "HTML",
4
- "contentMediaType": "text/html"
5
- }
@@ -1,26 +0,0 @@
1
- {
2
- "type": "string",
3
- "title": "JWT",
4
- "contentMediaType": "application/jwt",
5
- "contentSchema": {
6
- "title": "JSON Web Token",
7
- "type": "array",
8
- "minItems": 2,
9
- "items": [
10
- {
11
- "const": {
12
- "typ": "JWT",
13
- "alg": "HS256"
14
- }
15
- },
16
- {
17
- "type": "object",
18
- "required": ["iss", "exp"],
19
- "properties": {
20
- "iss": {"type": "string"},
21
- "exp": {"type": "integer"}
22
- }
23
- }
24
- ]
25
- }
26
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "string",
3
- "title": "PNG",
4
- "contentEncoding": "base64",
5
- "contentMediaType": "image/png"
6
- }
@@ -1 +0,0 @@
1
- The first schema in the cycle (or is it the last?)
@@ -1 +0,0 @@
1
- {}
@@ -1,17 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "$id": "http://example.com/schemas/one",
4
-
5
- "type": "object",
6
- "properties": {
7
- "children": {
8
- "type": "array",
9
- "items": {
10
- "anyOf": [
11
- { "$ref": "http://example.com/schemas/three" },
12
- { "$ref": "http://example.com/schemas/two" }
13
- ]
14
- }
15
- }
16
- }
17
- }
@@ -1,17 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "$id": "http://example.com/schemas/three",
4
-
5
- "type": "object",
6
- "properties": {
7
- "children": {
8
- "type": "array",
9
- "items": {
10
- "anyOf": [
11
- { "$ref": "http://example.com/schemas/one" },
12
- { "$ref": "http://example.com/schemas/two" }
13
- ]
14
- }
15
- }
16
- }
17
- }
@@ -1,17 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "$id": "http://example.com/schemas/two",
4
-
5
- "type": "object",
6
- "properties": {
7
- "children": {
8
- "type": "array",
9
- "items": {
10
- "anyOf": [
11
- { "$ref": "http://example.com/schemas/one" },
12
- { "$ref": "http://example.com/schemas/three" }
13
- ]
14
- }
15
- }
16
- }
17
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "foo": { "$ref": "http://unknown-ref"}
5
- }
6
- }
@@ -1,29 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "file://foo/mod.json",
4
- "title": "MI",
5
- "description": "Specification for input JSON",
6
- "type": "object",
7
- "properties": {
8
- "columns": {
9
- "title": "Columns",
10
- "meta:enum": {
11
- "[\"P\",\"M\"]": "Post Meridiem?"
12
- },
13
- "enum": [
14
- [
15
- "P",
16
- "M"
17
- ],
18
- [
19
- "M",
20
- "P"
21
- ]
22
- ],
23
- "type": "array"
24
- }
25
- },
26
- "required": [
27
- "columns"
28
- ]
29
- }
@@ -1,29 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "withmeta": {
5
- "foo": "bar",
6
- "enum": [
7
- "baa", "bad", "bag", "bah", "bam", "ban", "bap", "bas", "bat", "bay"
8
- ],
9
- "meta:enum": {
10
- "baa": "the sounds of sheeps",
11
- "bad": "German bathroom",
12
- "bag": "holding device",
13
- "bah": "humbug!",
14
- "bam": "a loud sound",
15
- "ban": "don't do this",
16
- "bap": "a British soft bread roll",
17
- "bas": "from ancient Egyptian religion, an aspect of the soul",
18
- "bat": "…out of hell",
19
- "bay": ", sitting by the dock of the"
20
- }
21
- },
22
- "withoutmeta": {
23
- "bar": "foo",
24
- "enum": [
25
- "baa", "bad", "bag", "bah", "bam", "ban", "bap", "bas", "bat", "bay"
26
- ]
27
- }
28
- }
29
- }
@@ -1,52 +0,0 @@
1
- {
2
- "meta:license":[
3
- "Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
4
- "This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
5
- "you may not use this file except in compliance with the License. You may obtain a copy",
6
- "of the License at http://www.apache.org/licenses/LICENSE-2.0"
7
- ],
8
- "$schema":"http://json-schema.org/draft-06/schema#",
9
- "$id":"https://example.com/schemas/example",
10
- "title":"Example",
11
- "type":"object",
12
- "description":"This is an example schema with examples. Too many examples? There can never be too many examples!",
13
- "properties":{
14
- "foo":{
15
- "type":"string",
16
- "description":"A simple string.",
17
- "examples":[
18
- "bar"
19
- ],
20
- "version":"1.0.0",
21
- "testProperty":"test"
22
- },
23
- "bar":{
24
- "type":"string",
25
- "description":"A simple string.",
26
- "examples":[
27
- "bar",
28
- "baz"
29
- ],
30
- "version":"1.0.0",
31
- "testProperty":"test"
32
- },
33
- "zip":{
34
- "type":"object",
35
- "title":"An object"
36
- },
37
- "zup":{
38
- "type":"object",
39
- "title":"An object"
40
- },
41
- "baz":{
42
- "anyOf":[
43
- {
44
- "$ref":"#/properties/foo"
45
- },
46
- {
47
- "$ref":"#/properties/bar"
48
- }
49
- ]
50
- }
51
- }
52
- }
@@ -1,25 +0,0 @@
1
- {
2
- "type": "object",
3
- "title": "Properties",
4
- "description": "Properties of Datepicker.",
5
-
6
- "additionalProperties": false,
7
- "properties": {
8
- "format": {
9
- "type": "string",
10
- "title": "Format",
11
- "description": "Formatting used to display the date."
12
- },
13
- "value": {
14
- "type": "string",
15
- "title": "Value",
16
- "description": "Date to be displayed."
17
- }
18
- },
19
- "examples": [
20
- {
21
- "format": "Coolness",
22
- "value": "Maximum"
23
- }
24
- ]
25
- }
@@ -1,22 +0,0 @@
1
- {
2
- "meta:license": [
3
- "Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
4
- "This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
5
- "you may not use this file except in compliance with the License. You may obtain a copy",
6
- "of the License at http://www.apache.org/licenses/LICENSE-2.0"
7
- ],
8
- "$schema": "http://json-schema.org/draft-06/schema#",
9
- "$id": "https://example.com/schemas/identifiable",
10
- "title": "Identifiable",
11
- "description": "This is a *very* simple example of a JSON schema. There is only one property.",
12
- "type": "object",
13
- "properties": {
14
- "@id": {
15
- "type": "string",
16
- "format": "uri",
17
- "description": "A unique identifier given to every addressable thing.",
18
- "version": "1.0.0",
19
- "testProperty": "test"
20
- }
21
- }
22
- }
@@ -1,7 +0,0 @@
1
- {
2
- "title": "Not true",
3
- "not": {
4
- "const": true,
5
- "title": "True"
6
- }
7
- }
@@ -1,14 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "may": {
5
- "type": ["null", "boolean"]
6
- },
7
- "must": {
8
- "type": "null"
9
- },
10
- "constant": {
11
- "const": null
12
- }
13
- }
14
- }
@@ -1,17 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "http://example.com/type-array-repro.json",
4
- "type": "object",
5
- "title": "Type Array Repro",
6
- "description": "Type Array Issue Reproduction",
7
- "required": [
8
- "sampleProp"
9
- ],
10
- "additionalProperties": false,
11
- "properties": {
12
- "sampleProp": {
13
- "type": ["string", "null"],
14
- "title": "Sample Property"
15
- }
16
- }
17
- }
@@ -1,50 +0,0 @@
1
- {
2
- "meta:license": [
3
- "Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
4
- "This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
5
- "you may not use this file except in compliance with the License. You may obtain a copy",
6
- "of the License at http://www.apache.org/licenses/LICENSE-2.0"
7
- ],
8
- "$schema": "http://json-schema.org/draft-06/schema#",
9
- "$id": "https://example.com/schemas/abstract",
10
- "title": "Abstract",
11
- "readOnly": true,
12
- "writeOnly": true,
13
- "description": "This is an abstract schema. It has `definitions`, but does not declare any properties",
14
- "type": "object",
15
- "$defs": {
16
- "first": {
17
- "type": "object",
18
- "properties": {
19
- "foo": {
20
- "type": "string",
21
- "description": "A unique identifier given to every addressable thing.",
22
- "version": "1.0.0",
23
- "testProperty": "test",
24
- "readOnly": true
25
- },
26
- "nonfoo": {
27
- "type": "boolean",
28
- "const": false,
29
- "description": "This is not foo.",
30
- "version": "1.0.0",
31
- "testProperty": "test",
32
- "writeOnly": true
33
- }
34
- }
35
- },
36
- "second": {
37
- "type":"object",
38
- "properties": {
39
- "bar": {
40
- "type": "string",
41
- "description": "A unique identifier given to every addressable thing.",
42
- "version": "1.0.0",
43
- "testProperty": "test",
44
- "readOnly": true,
45
- "writeOnly": true
46
- }
47
- }
48
- }
49
- }
50
- }