@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,83 +0,0 @@
1
- # Javascript Node CircleCI 2.0 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4
- #
5
- version: 2
6
- jobs:
7
- build:
8
- docker:
9
- # specify the version you desire here
10
- - image: circleci/node:12
11
-
12
- # Specify service dependencies here if necessary
13
- # CircleCI maintains a library of pre-built images
14
- # documented at https://circleci.com/docs/2.0/circleci-images/
15
- # - image: circleci/mongo:3.4.4
16
-
17
- working_directory: ~/repo
18
-
19
- steps:
20
- - checkout
21
-
22
- # Download and cache dependencies
23
- - restore_cache:
24
- keys:
25
- - v1-dependencies-{{ checksum "package.json" }}
26
- # fallback to using the latest cache if no exact match is found
27
- - v1-dependencies-
28
-
29
- - run: npm install
30
-
31
- - save_cache:
32
- paths:
33
- - node_modules
34
- key: v1-dependencies-{{ checksum "package.json" }}
35
-
36
- # run tests!
37
- - run: npm run test-ci
38
-
39
- - store_test_results:
40
- path: junit
41
- - store_artifacts:
42
- path: junit
43
-
44
- publish:
45
- docker:
46
- # specify the version you desire here
47
- - image: circleci/node:12
48
-
49
- # Specify service dependencies here if necessary
50
- # CircleCI maintains a library of pre-built images
51
- # documented at https://circleci.com/docs/2.0/circleci-images/
52
- # - image: circleci/mongo:3.4.4
53
-
54
- working_directory: ~/repo
55
-
56
- steps:
57
- - checkout
58
-
59
- # Download and cache dependencies
60
- - restore_cache:
61
- keys:
62
- - v1-dependencies-{{ checksum "package.json" }}
63
- # fallback to using the latest cache if no exact match is found
64
- - v1-dependencies-
65
-
66
- - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
67
-
68
- - run: npm install
69
-
70
- - save_cache:
71
- paths:
72
- - node_modules
73
- key: v1-dependencies-{{ checksum "package.json" }}
74
-
75
- - run:
76
- name: Publish Release
77
- command: npm run semantic-release
78
-
79
- workflows:
80
- version: 2
81
- build_test_deploy:
82
- jobs:
83
- - build
@@ -1,23 +0,0 @@
1
- ## What did you do
2
-
3
- ## What did you expect to happen
4
-
5
- ## What happened
6
-
7
- ## What's your environment
8
-
9
- * Operating System:
10
- * node.js version:
11
-
12
- ## Do you have example files:
13
-
14
- For this schema
15
- ```json
16
-
17
- ```
18
-
19
- I'm getting following Markdown
20
-
21
- ```markdown
22
-
23
- ```
@@ -1,55 +0,0 @@
1
- name: Semantic Release
2
- on:
3
- push:
4
- branches:
5
- - 'main'
6
-
7
- jobs:
8
- build:
9
- runs-on: ubuntu-latest
10
- if: "!contains(github.event.head_commit.message, '[skip ci]')"
11
- steps:
12
- - uses: actions/checkout@v2
13
- - name: Use Node.js 12.x
14
- uses: actions/setup-node@v2
15
- with:
16
- node-version: '12.x'
17
- - run: npm install
18
- - run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build"
19
- - run: npm test
20
- env:
21
- CIRCLE_REPOSITORY_URL: dummy-url
22
-
23
- build_win:
24
- runs-on: windows-latest
25
- if: "!contains(github.event.head_commit.message, '[skip ci]')"
26
- steps:
27
- - run: git config --global core.autocrlf false
28
- - uses: actions/checkout@v2
29
- - name: Use Node.js 12.x
30
- uses: actions/setup-node@v2
31
- with:
32
- node-version: '12.x'
33
- - run: npm install
34
- - run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build"
35
- - run: npm test
36
- env:
37
- CIRCLE_REPOSITORY_URL: dummy-url
38
-
39
- release:
40
- runs-on: ubuntu-latest
41
- needs: [build, build_win]
42
- if: "!contains(github.event.head_commit.message, '[skip ci]')"
43
- steps:
44
- - uses: actions/checkout@v2
45
- with:
46
- persist-credentials: false
47
- - name: Use Node.js 12.x
48
- uses: actions/setup-node@v2
49
- with:
50
- node-version: '12.x'
51
- - run: npm install
52
- - run: npm run semantic-release
53
- env:
54
- GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
55
- NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
@@ -1,16 +0,0 @@
1
- on:
2
- push:
3
- branches-ignore:
4
- - 'main'
5
-
6
- jobs:
7
- ci_trigger:
8
- runs-on: ubuntu-latest
9
- name: Comment Semantic Release Status
10
- steps:
11
- - name: Comment
12
- id: comment
13
- uses: adobe-rnd/github-semantic-release-comment-action@master
14
- with:
15
- repo-token: ${{ secrets.GITHUB_TOKEN }}
16
-
package/.renovaterc.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": ["github>adobe/helix-shared"]
3
- }
package/.tidelift.yml DELETED
@@ -1,32 +0,0 @@
1
- licensing:
2
- disallowed:
3
- - AGPL-1.0-only
4
- - AGPL-1.0-or-later
5
- - AGPL-3.0-only
6
- - AGPL-3.0-or-later
7
- - AGPL-1.0
8
- - AGPL-3.0
9
- - CC-BY-NC-ND-1.0
10
- - CC-BY-NC-ND-2.0
11
- - CC-BY-NC-ND-2.5
12
- - CC-BY-NC-ND-3.0
13
- - CC-BY-NC-ND-4.0
14
- - CC-BY-NC-SA-1.0
15
- - CC-BY-NC-SA-2.0
16
- - CC-BY-NC-SA-2.5
17
- - CC-BY-NC-SA-3.0
18
- - CC-BY-NC-SA-4.0
19
- - CC-BY-SA-1.0
20
- - CC-BY-SA-2.0
21
- - CC-BY-SA-2.5
22
- - CC-BY-SA-3.0
23
- - CC-BY-SA-4.0
24
- - GPL-1.0-only
25
- - GPL-1.0-or-later
26
- - GPL-2.0-only
27
- - GPL-2.0-or-later
28
- - GPL-3.0-only
29
- - GPL-3.0-or-later
30
- - SSPL-1.0
31
- - Sleepycat
32
- - Facebook
package/crowdin.yml DELETED
@@ -1,4 +0,0 @@
1
- commit_message: "fix(i18n): update localization"
2
- files:
3
- - source: /lib/locales/en_US.json
4
- translation: /lib/locales/%two_letters_code%.json
@@ -1,3 +0,0 @@
1
- # What is Abstract?
2
-
3
- Something that cannot be instantiated.
@@ -1,121 +0,0 @@
1
- # README
2
-
3
- ## Top-level Schemas
4
-
5
- * [Abstract](./abstract.md "This is an abstract schema") – `https://example.com/schemas/abstract`
6
-
7
- * [Arrays](./arrays.md "This is an example schema with examples for multiple array types and their constraints") – `https://example.com/schemas/arrays`
8
-
9
- * [Complex References](./complex.md "This is an example schema that uses types defined in other schemas") – `https://example.com/schemas/complex`
10
-
11
- * [Constant Types](./constants.md "This is an example schema with examples for properties with constant values") – `https://example.com/schemas/constants`
12
-
13
- * [Custom](./custom.md "This is an extensible schema") – `https://example.com/schemas/custom`
14
-
15
- * [Deeply Extending](./deepextending.md "This is an extending schema") – `https://example.com/schemas/deepextending`
16
-
17
- * [Definitions](./definitions.md "This is an example of using a definitions object within a schema") – `https://example.com/schemas/definitions`
18
-
19
- * [Enumerated ](./enums.md "This is an example schema with examples for properties with enum values") – `https://example.com/schemas/enums`
20
-
21
- * [Example](./example.md "This is an example schema with examples") – `https://example.com/schemas/example`
22
-
23
- * [Examples](./examples.md "This is an example schema with multiple examples") – `https://example.com/schemas/examples`
24
-
25
- * [Extending](./extending.md "This is an extending schema") – `https://example.com/schemas/extending`
26
-
27
- * [Extensible](./extensible.md "This is an extensible schema") – `https://example.com/schemas/extensible`
28
-
29
- * [Identifiable](./identifiable.md "This is a very simple example of a JSON schema") – `https://example.com/schemas/identifiable`
30
-
31
- * [Join Types](./join.md "This is an example of a JSON schema with only a join type key") – `https://example.com/schemas/join`
32
-
33
- * [Nested Object](./nestedobj.md) – `https://example.com/schemas/nestedobject`
34
-
35
- * [Pattern Properties](./pattern.md "This is an example of a JSON schema with only a patternProperties key") – `https://example.com/schemas/pattern`
36
-
37
- * [Simple](./simple.md "This is a very simple example of a JSON schema") – `https://example.com/schemas/simple`
38
-
39
- * [Simple Types](./simpletypes.md "This is an example schema with examples for multiple types and their constraints") – `https://example.com/schemas/simpletypes`
40
-
41
- * [Stabilizing](./stabilizing.md "This is a schema which is currently in the stabilizing status") – `https://example.com/schemas/stabilizing`
42
-
43
- * [Subdir](./subdir.md "A schema in a sub directory") – `https://example.com/schemas/subdir/subdir`
44
-
45
- * [Type Arrays](./typearrays.md "This schema test type arrays and nullable types") – `https://example.com/schemas/typearrays`
46
-
47
- ## Other Schemas
48
-
49
- ### Objects
50
-
51
- * [Enumerated (Nested)](./enums-properties-enumerated-nested.md "This is an example schema with examples for properties of nested objects with enum values") – `https://example.com/schemas/enums#/properties/nested`
52
-
53
- * [Simple](./complex-properties-simple.md "This is a very simple example of a JSON schema") – `https://example.com/schemas/simple#/properties/refnamed`
54
-
55
- * [Untitled object in Abstract](./abstract-definitions-first.md) – `https://example.com/schemas/abstract#/definitions/first`
56
-
57
- * [Untitled object in Abstract](./abstract-definitions-second.md) – `https://example.com/schemas/abstract#/definitions/second`
58
-
59
- * [Untitled object in Arrays](./arrays-properties-objectlist-items.md) – `https://example.com/schemas/arrays#/properties/objectlist/items`
60
-
61
- * [Untitled object in Arrays](./arrays-properties-jointypelist-items-oneof-0.md "A simple string") – `https://example.com/schemas/arrays#/properties/JoinTypelist/items/oneOf/0`
62
-
63
- * [Untitled object in Arrays](./arrays-properties-jointypelist-items-oneof-1.md "Another simple string") – `https://example.com/schemas/arrays#/properties/JoinTypelist/items/oneOf/1`
64
-
65
- * [Untitled object in Complex References](./complex-properties-refabstract.md) – `https://example.com/schemas/complex#/properties/refabstract`
66
-
67
- * [Untitled object in Complex References](./complex-properties-refobj.md) – `https://example.com/schemas/complex#/properties/refobj`
68
-
69
- * [Untitled object in Complex References](./complex-properties-refnestedobj.md) – `https://example.com/schemas/complex#/properties/refnestedobj`
70
-
71
- * [Untitled object in Complex References](./complex-properties-refnestedobj-properties-refobj.md) – `https://example.com/schemas/complex#/properties/refnestedobj/properties/refobj`
72
-
73
- * [Untitled object in Complex References](./complex-properties-reflocalfiledef.md) – `https://example.com/schemas/complex#/properties/reflocalfiledef`
74
-
75
- * [Untitled object in Complex References](./complex-properties-reflocalfiledef-properties-third.md) – `https://example.com/schemas/complex#/properties/reflocalfiledef/properties/third`
76
-
77
- * [Untitled object in Deeply Extending](./deepextending-allof-2.md) – `https://example.com/schemas/deepextending#/allOf/2`
78
-
79
- * [Untitled object in Extending](./extending-definitions-third.md) – `https://example.com/schemas/extending#/definitions/third`
80
-
81
- * [Untitled object in Extending](./extending-allof-2.md) – `https://example.com/schemas/extending#/allOf/2`
82
-
83
- * [Untitled object in Join Types](./join-oneof-0-not-oneof-0.md "A simple string") – `https://example.com/schemas/join#/oneOf/0/not/oneOf/0`
84
-
85
- * [Untitled object in Join Types](./join-oneof-0-not-oneof-1.md "Another simple string") – `https://example.com/schemas/join#/oneOf/0/not/oneOf/1`
86
-
87
- * [Untitled object in Join Types](./join-oneof-1-allof-0.md "A simple string") – `https://example.com/schemas/join#/oneOf/1/allOf/0`
88
-
89
- * [Untitled object in Join Types](./join-oneof-2-anyof-0.md "Another simple string") – `https://example.com/schemas/join#/oneOf/2/anyOf/0`
90
-
91
- * [Untitled object in Nested Object](./nestedobj-properties-settings.md "settings") – `https://example.com/schemas/nestedobject#/properties/settings`
92
-
93
- * [Untitled object in Nested Object](./nestedobj-properties-settings-properties-collaborators.md "collaborators") – `https://example.com/schemas/nestedobject#/properties/settings/properties/collaborators`
94
-
95
- ### Arrays
96
-
97
- * [Untitled array in Arrays](./arrays-properties-tuple.md "This is an array of two values, one positive, one negative") – `https://example.com/schemas/arrays#/properties/tuple`
98
-
99
- * [Untitled array in Arrays](./arrays-properties-list.md "This is an array") – `https://example.com/schemas/arrays#/properties/list`
100
-
101
- * [Untitled array in Arrays](./arrays-properties-listlist.md "This is an array of arrays") – `https://example.com/schemas/arrays#/properties/listlist`
102
-
103
- * [Untitled array in Arrays](./arrays-properties-listlist-items.md) – `https://example.com/schemas/arrays#/properties/listlist/items`
104
-
105
- * [Untitled array in Arrays](./arrays-properties-stringlistlist.md "This is an array of arrays of strings") – `https://example.com/schemas/arrays#/properties/stringlistlist`
106
-
107
- * [Untitled array in Arrays](./arrays-properties-stringlistlist-items.md) – `https://example.com/schemas/arrays#/properties/stringlistlist/items`
108
-
109
- * [Untitled array in Arrays](./arrays-properties-intlist.md "This is an array") – `https://example.com/schemas/arrays#/properties/intlist`
110
-
111
- * [Untitled array in Arrays](./arrays-properties-boollist.md "This is an array") – `https://example.com/schemas/arrays#/properties/boollist`
112
-
113
- * [Untitled array in Arrays](./arrays-properties-numlist.md "This is an array") – `https://example.com/schemas/arrays#/properties/numlist`
114
-
115
- * [Untitled array in Arrays](./arrays-properties-coordinatelist.md "This is an array of coordinates in three-dimensional space") – `https://example.com/schemas/arrays#/properties/coordinatelist`
116
-
117
- * [Untitled array in Arrays](./arrays-properties-coordinatelist-items.md "A coordinate, specified by x, y, and z values") – `https://example.com/schemas/arrays#/properties/coordinatelist/items`
118
-
119
- * [Untitled array in Arrays](./arrays-properties-objectlist.md "An array of simple objects") – `https://example.com/schemas/arrays#/properties/objectlist`
120
-
121
- * [Untitled array in Arrays](./arrays-properties-jointypelist.md "An array of simple objects") – `https://example.com/schemas/arrays#/properties/JoinTypelist`
@@ -1,15 +0,0 @@
1
- # Untitled string in Abstract Schema
2
-
3
- ```txt
4
- https://example.com/schemas/abstract#/definitions/first/properties/foo
5
- ```
6
-
7
- A unique identifier given to every addressable thing.
8
-
9
- | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
- | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------------- |
11
- | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [abstract.schema.json*](../generated-schemas/abstract.schema.json "open original schema") |
12
-
13
- ## foo Type
14
-
15
- `string`
@@ -1,23 +0,0 @@
1
- # Untitled boolean in Abstract Schema
2
-
3
- ```txt
4
- https://example.com/schemas/abstract#/definitions/first/properties/nonfoo
5
- ```
6
-
7
- This is not foo.
8
-
9
- | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
- | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------------- |
11
- | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [abstract.schema.json*](../generated-schemas/abstract.schema.json "open original schema") |
12
-
13
- ## nonfoo Type
14
-
15
- `boolean`
16
-
17
- ## nonfoo Constraints
18
-
19
- **constant**: the value of this property must be equal to:
20
-
21
- ```json
22
- false
23
- ```
@@ -1,66 +0,0 @@
1
- # Untitled object in Complex References Schema
2
-
3
- ```txt
4
- https://example.com/schemas/complex#/properties/refabstract
5
- ```
6
-
7
-
8
-
9
- | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
- | :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------------- |
11
- | Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [complex.schema.json*](../generated-schemas/complex.schema.json "open original schema") |
12
-
13
- ## refabstract Type
14
-
15
- `object` ([Details](abstract-definitions-first.md))
16
-
17
- # refabstract Properties
18
-
19
- | Property | Type | Required | Nullable | Defined by |
20
- | :---------------- | :-------- | :------- | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------- |
21
- | [foo](#foo) | `string` | Optional | cannot be null | [Abstract](abstract-definitions-first-properties-foo.md "https://example.com/schemas/abstract#/definitions/first/properties/foo") |
22
- | [nonfoo](#nonfoo) | `boolean` | Optional | cannot be null | [Abstract](abstract-definitions-first-properties-nonfoo.md "https://example.com/schemas/abstract#/definitions/first/properties/nonfoo") |
23
-
24
- ## foo
25
-
26
- A unique identifier given to every addressable thing.
27
-
28
- `foo`
29
-
30
- * is optional
31
-
32
- * Type: `string`
33
-
34
- * cannot be null
35
-
36
- * defined in: [Abstract](abstract-definitions-first-properties-foo.md "https://example.com/schemas/abstract#/definitions/first/properties/foo")
37
-
38
- ### foo Type
39
-
40
- `string`
41
-
42
- ## nonfoo
43
-
44
- This is not foo.
45
-
46
- `nonfoo`
47
-
48
- * is optional
49
-
50
- * Type: `boolean`
51
-
52
- * cannot be null
53
-
54
- * defined in: [Abstract](abstract-definitions-first-properties-nonfoo.md "https://example.com/schemas/abstract#/definitions/first/properties/nonfoo")
55
-
56
- ### nonfoo Type
57
-
58
- `boolean`
59
-
60
- ### nonfoo Constraints
61
-
62
- **constant**: the value of this property must be equal to:
63
-
64
- ```json
65
- false
66
- ```
@@ -1,15 +0,0 @@
1
- # Untitled string in Abstract Schema
2
-
3
- ```txt
4
- https://example.com/schemas/abstract#/definitions/second/properties/bar
5
- ```
6
-
7
- A unique identifier given to every addressable thing.
8
-
9
- | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
- | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------------- |
11
- | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [abstract.schema.json*](../generated-schemas/abstract.schema.json "open original schema") |
12
-
13
- ## bar Type
14
-
15
- `string`
@@ -1,39 +0,0 @@
1
- # Untitled object in Abstract Schema
2
-
3
- ```txt
4
- https://example.com/schemas/abstract#/definitions/second
5
- ```
6
-
7
-
8
-
9
- | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
- | :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------------- |
11
- | Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [abstract.schema.json*](../generated-schemas/abstract.schema.json "open original schema") |
12
-
13
- ## second Type
14
-
15
- `object` ([Details](abstract-definitions-second.md))
16
-
17
- # second Properties
18
-
19
- | Property | Type | Required | Nullable | Defined by |
20
- | :---------- | :------- | :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------- |
21
- | [bar](#bar) | `string` | Optional | cannot be null | [Abstract](abstract-definitions-second-properties-bar.md "https://example.com/schemas/abstract#/definitions/second/properties/bar") |
22
-
23
- ## bar
24
-
25
- A unique identifier given to every addressable thing.
26
-
27
- `bar`
28
-
29
- * is optional
30
-
31
- * Type: `string`
32
-
33
- * cannot be null
34
-
35
- * defined in: [Abstract](abstract-definitions-second-properties-bar.md "https://example.com/schemas/abstract#/definitions/second/properties/bar")
36
-
37
- ### bar Type
38
-
39
- `string`
@@ -1,15 +0,0 @@
1
- # Untitled undefined type in Abstract Schema
2
-
3
- ```txt
4
- https://example.com/schemas/abstract#/definitions
5
- ```
6
-
7
-
8
-
9
- | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
- | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------------- |
11
- | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [abstract.schema.json*](../generated-schemas/abstract.schema.json "open original schema") |
12
-
13
- ## definitions Type
14
-
15
- unknown
@@ -1,104 +0,0 @@
1
- # Abstract Schema
2
-
3
- ```txt
4
- https://example.com/schemas/abstract
5
- ```
6
-
7
- This is an abstract schema. It has `definitions`, but does not declare any properties
8
-
9
- | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
- | :--------------------- | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------------------- |
11
- | Cannot be instantiated | Yes | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [abstract.schema.json](../generated-schemas/abstract.schema.json "open original schema") |
12
-
13
- ## Abstract Type
14
-
15
- `object` ([Abstract](abstract.md))
16
-
17
- # Abstract Definitions
18
-
19
- ## Definitions group first
20
-
21
- Reference this group by using
22
-
23
- ```json
24
- {"$ref":"https://example.com/schemas/abstract#/definitions/first"}
25
- ```
26
-
27
- | Property | Type | Required | Nullable | Defined by |
28
- | :---------------- | :-------- | :------- | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------- |
29
- | [foo](#foo) | `string` | Optional | cannot be null | [Abstract](abstract-definitions-first-properties-foo.md "https://example.com/schemas/abstract#/definitions/first/properties/foo") |
30
- | [nonfoo](#nonfoo) | `boolean` | Optional | cannot be null | [Abstract](abstract-definitions-first-properties-nonfoo.md "https://example.com/schemas/abstract#/definitions/first/properties/nonfoo") |
31
-
32
- ### foo
33
-
34
- A unique identifier given to every addressable thing.
35
-
36
- `foo`
37
-
38
- * is optional
39
-
40
- * Type: `string`
41
-
42
- * cannot be null
43
-
44
- * defined in: [Abstract](abstract-definitions-first-properties-foo.md "https://example.com/schemas/abstract#/definitions/first/properties/foo")
45
-
46
- #### foo Type
47
-
48
- `string`
49
-
50
- ### nonfoo
51
-
52
- This is not foo.
53
-
54
- `nonfoo`
55
-
56
- * is optional
57
-
58
- * Type: `boolean`
59
-
60
- * cannot be null
61
-
62
- * defined in: [Abstract](abstract-definitions-first-properties-nonfoo.md "https://example.com/schemas/abstract#/definitions/first/properties/nonfoo")
63
-
64
- #### nonfoo Type
65
-
66
- `boolean`
67
-
68
- #### nonfoo Constraints
69
-
70
- **constant**: the value of this property must be equal to:
71
-
72
- ```json
73
- false
74
- ```
75
-
76
- ## Definitions group second
77
-
78
- Reference this group by using
79
-
80
- ```json
81
- {"$ref":"https://example.com/schemas/abstract#/definitions/second"}
82
- ```
83
-
84
- | Property | Type | Required | Nullable | Defined by |
85
- | :---------- | :------- | :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------- |
86
- | [bar](#bar) | `string` | Optional | cannot be null | [Abstract](abstract-definitions-second-properties-bar.md "https://example.com/schemas/abstract#/definitions/second/properties/bar") |
87
-
88
- ### bar
89
-
90
- A unique identifier given to every addressable thing.
91
-
92
- `bar`
93
-
94
- * is optional
95
-
96
- * Type: `string`
97
-
98
- * cannot be null
99
-
100
- * defined in: [Abstract](abstract-definitions-second-properties-bar.md "https://example.com/schemas/abstract#/definitions/second/properties/bar")
101
-
102
- #### bar Type
103
-
104
- `string`
@@ -1,15 +0,0 @@
1
- # Untitled boolean in Arrays Schema
2
-
3
- ```txt
4
- https://example.com/schemas/arrays#/properties/boollist/items
5
- ```
6
-
7
-
8
-
9
- | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
- | :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------------ |
11
- | Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [arrays.schema.json*](../generated-schemas/arrays.schema.json "open original schema") |
12
-
13
- ## items Type
14
-
15
- `boolean`