@adobe/jsonschema2md 6.1.4 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{.eslintrc.js → .eslintrc.cjs} +3 -17
- package/{.releaserc.js → .releaserc.cjs} +0 -0
- package/CHANGELOG.md +26 -0
- package/cli.js +1 -1
- package/lib/formatInfo.js +17 -19
- package/lib/formattingTools.js +6 -8
- package/lib/index.js +176 -81
- package/lib/keywords.js +2 -4
- package/lib/locales/update.js +2 -2
- package/lib/markdownBuilder.js +62 -44
- package/lib/readmeBuilder.js +15 -15
- package/lib/schemaProxy.js +32 -26
- package/lib/symbols.js +14 -2
- package/lib/traverseSchema.js +5 -5
- package/lib/writeMarkdown.js +87 -41
- package/lib/writeSchema.js +46 -21
- package/package.json +39 -28
- package/types/api.d.ts +72 -0
- package/types/formatInfo.d.ts +19 -0
- package/types/formattingTools.d.ts +2 -0
- package/types/index.d.ts +75 -0
- package/types/keywords.d.ts +2 -0
- package/types/markdownBuilder.d.ts +8 -0
- package/types/readmeBuilder.d.ts +5 -0
- package/types/schemaProxy.d.ts +1 -0
- package/types/symbols.d.ts +11 -0
- package/types/traverseSchema.d.ts +6 -0
- package/types/writeMarkdown.d.ts +56 -0
- package/types/writeSchema.d.ts +19 -0
- package/.circleci/config.yml +0 -83
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -23
- package/.github/workflows/semantic-release.yaml +0 -55
- package/.github/workflows/semver-check.yaml +0 -16
- package/.renovaterc.json +0 -3
- package/.tidelift.yml +0 -32
- package/crowdin.yml +0 -4
- package/examples/abstract.md +0 -3
- package/examples/docs/README.md +0 -121
- package/examples/docs/abstract-definitions-first-properties-foo.md +0 -15
- package/examples/docs/abstract-definitions-first-properties-nonfoo.md +0 -23
- package/examples/docs/abstract-definitions-first.md +0 -66
- package/examples/docs/abstract-definitions-second-properties-bar.md +0 -15
- package/examples/docs/abstract-definitions-second.md +0 -39
- package/examples/docs/abstract-definitions.md +0 -15
- package/examples/docs/abstract.md +0 -104
- package/examples/docs/arrays-properties-boollist-items.md +0 -15
- package/examples/docs/arrays-properties-boollist.md +0 -19
- package/examples/docs/arrays-properties-coordinatelist-items-items.md +0 -21
- package/examples/docs/arrays-properties-coordinatelist-items.md +0 -21
- package/examples/docs/arrays-properties-coordinatelist.md +0 -19
- package/examples/docs/arrays-properties-intlist-items.md +0 -15
- package/examples/docs/arrays-properties-intlist.md +0 -21
- package/examples/docs/arrays-properties-jointypelist-items-oneof-0-properties-foo.md +0 -21
- package/examples/docs/arrays-properties-jointypelist-items-oneof-0.md +0 -45
- package/examples/docs/arrays-properties-jointypelist-items-oneof-1-properties-bar.md +0 -21
- package/examples/docs/arrays-properties-jointypelist-items-oneof-1.md +0 -45
- package/examples/docs/arrays-properties-jointypelist-items.md +0 -21
- package/examples/docs/arrays-properties-jointypelist.md +0 -15
- package/examples/docs/arrays-properties-list-items.md +0 -15
- package/examples/docs/arrays-properties-list.md +0 -15
- package/examples/docs/arrays-properties-listlist-items.md +0 -15
- package/examples/docs/arrays-properties-listlist.md +0 -15
- package/examples/docs/arrays-properties-numlist-items.md +0 -19
- package/examples/docs/arrays-properties-numlist.md +0 -19
- package/examples/docs/arrays-properties-objectlist-items-properties-a.md +0 -15
- package/examples/docs/arrays-properties-objectlist-items-properties-b.md +0 -15
- package/examples/docs/arrays-properties-objectlist-items.md +0 -58
- package/examples/docs/arrays-properties-objectlist.md +0 -15
- package/examples/docs/arrays-properties-stringlistlist-items-items.md +0 -15
- package/examples/docs/arrays-properties-stringlistlist-items.md +0 -15
- package/examples/docs/arrays-properties-stringlistlist.md +0 -15
- package/examples/docs/arrays-properties-tuple-items-negative-integer.md +0 -19
- package/examples/docs/arrays-properties-tuple-items-positive-integer.md +0 -19
- package/examples/docs/arrays-properties-tuple-zero.md +0 -23
- package/examples/docs/arrays-properties-tuple.md +0 -21
- package/examples/docs/arrays.md +0 -240
- package/examples/docs/complex-additionalproperties.md +0 -15
- package/examples/docs/complex-patternproperties-int.md +0 -15
- package/examples/docs/complex-patternproperties-str.md +0 -15
- package/examples/docs/complex-patternproperties.md +0 -15
- package/examples/docs/complex-properties-and-allof-0.md +0 -19
- package/examples/docs/complex-properties-and-allof-1.md +0 -19
- package/examples/docs/complex-properties-and.md +0 -21
- package/examples/docs/complex-properties-or-anyof-0.md +0 -15
- package/examples/docs/complex-properties-or-anyof-1.md +0 -19
- package/examples/docs/complex-properties-or.md +0 -21
- package/examples/docs/complex-properties-reflocalfiledef.md +0 -39
- package/examples/docs/complex-properties-refnestedobj-properties-refobj.md +0 -39
- package/examples/docs/complex-properties-refnestedobj.md +0 -39
- package/examples/docs/complex-properties-refobj.md +0 -39
- package/examples/docs/complex-properties-xor-oneof-0.md +0 -19
- package/examples/docs/complex-properties-xor-oneof-1.md +0 -19
- package/examples/docs/complex-properties-xor.md +0 -21
- package/examples/docs/complex.md +0 -285
- package/examples/docs/constants-properties-hello.md +0 -23
- package/examples/docs/constants.md +0 -47
- package/examples/docs/custom-allof-0.md +0 -15
- package/examples/docs/custom-allof-1.md +0 -39
- package/examples/docs/custom-allof-2.md +0 -39
- package/examples/docs/custom-definitions-first-properties-foo.md +0 -15
- package/examples/docs/custom-definitions-first-properties.md +0 -15
- package/examples/docs/custom-definitions-first.md +0 -39
- package/examples/docs/custom-definitions-second-properties-bar.md +0 -15
- package/examples/docs/custom-definitions-second-properties.md +0 -15
- package/examples/docs/custom-definitions-second.md +0 -39
- package/examples/docs/custom-definitions.md +0 -15
- package/examples/docs/custom.md +0 -85
- package/examples/docs/deepextending-allof-0.md +0 -49
- package/examples/docs/deepextending-allof-1.md +0 -89
- package/examples/docs/deepextending-allof-3.md +0 -39
- package/examples/docs/deepextending-definitions-fourth-properties-hey.md +0 -15
- package/examples/docs/deepextending-definitions-fourth-properties.md +0 -15
- package/examples/docs/deepextending-definitions-fourth.md +0 -39
- package/examples/docs/deepextending-definitions.md +0 -15
- package/examples/docs/deepextending.md +0 -57
- package/examples/docs/definitions-definitions-myid-properties-id-1.md +0 -19
- package/examples/docs/definitions-definitions-myid-properties-id.md +0 -19
- package/examples/docs/definitions-definitions-myid-properties-metaid.md +0 -19
- package/examples/docs/definitions-definitions-myid-properties.md +0 -15
- package/examples/docs/definitions-definitions-myid.md +0 -89
- package/examples/docs/definitions-definitions.md +0 -15
- package/examples/docs/definitions.md +0 -117
- package/examples/docs/enums-properties-enumerated-nested-properties-test.md +0 -25
- package/examples/docs/enums-properties-enumerated-nested.md +0 -49
- package/examples/docs/enums-properties-hello.md +0 -24
- package/examples/docs/enums.md +0 -67
- package/examples/docs/example-properties-bar.md +0 -25
- package/examples/docs/example-properties-foo.md +0 -21
- package/examples/docs/example.md +0 -83
- package/examples/docs/examples-properties-bar.md +0 -25
- package/examples/docs/examples-properties-foo.md +0 -21
- package/examples/docs/examples.md +0 -90
- package/examples/docs/extending-definitions-third-properties-baaaz.md +0 -21
- package/examples/docs/extending-definitions-third.md +0 -45
- package/examples/docs/extending-definitions.md +0 -15
- package/examples/docs/extending.md +0 -61
- package/examples/docs/extensible-definitions-first-properties-foo.md +0 -21
- package/examples/docs/extensible-definitions-first-properties.md +0 -15
- package/examples/docs/extensible-definitions-first.md +0 -45
- package/examples/docs/extensible-definitions-second-properties-bar.md +0 -25
- package/examples/docs/extensible-definitions-second-properties.md +0 -15
- package/examples/docs/extensible-definitions-second.md +0 -49
- package/examples/docs/extensible-definitions.md +0 -15
- package/examples/docs/extensible.md +0 -93
- package/examples/docs/identifiable-properties-id.md +0 -19
- package/examples/docs/identifiable.md +0 -43
- package/examples/docs/join-oneof-0-not-oneof-0-properties-foo.md +0 -21
- package/examples/docs/join-oneof-0-not-oneof-0.md +0 -45
- package/examples/docs/join-oneof-0-not-oneof-1-properties-bar.md +0 -21
- package/examples/docs/join-oneof-0-not-oneof-1.md +0 -45
- package/examples/docs/join-oneof-0-not.md +0 -21
- package/examples/docs/join-oneof-0.md +0 -23
- package/examples/docs/join-oneof-1-allof-0-properties-foo.md +0 -21
- package/examples/docs/join-oneof-1-allof-0.md +0 -45
- package/examples/docs/join-oneof-1.md +0 -19
- package/examples/docs/join-oneof-2-anyof-0-properties-bar.md +0 -21
- package/examples/docs/join-oneof-2-anyof-0.md +0 -45
- package/examples/docs/join-oneof-2.md +0 -19
- package/examples/docs/join.md +0 -33
- package/examples/docs/nestedobj-properties-settings-properties-collaborators-patternproperties-.md +0 -15
- package/examples/docs/nestedobj-properties-settings-properties-collaborators-patternproperties.md +0 -15
- package/examples/docs/nestedobj-properties-settings-properties-collaborators-properties-id.md +0 -15
- package/examples/docs/nestedobj-properties-settings-properties-collaborators.md +0 -58
- package/examples/docs/nestedobj-properties-settings.md +0 -39
- package/examples/docs/nestedobj.md +0 -39
- package/examples/docs/pattern-patternproperties-0-9.md +0 -21
- package/examples/docs/pattern-patternproperties.md +0 -15
- package/examples/docs/pattern.md +0 -45
- package/examples/docs/simple-properties-id.md +0 -19
- package/examples/docs/simple.md +0 -43
- package/examples/docs/simpletypes-properties-integer_threes.md +0 -23
- package/examples/docs/simpletypes-properties-interger_constrained.md +0 -19
- package/examples/docs/simpletypes-properties-interger_unconstrained.md +0 -15
- package/examples/docs/simpletypes-properties-number_constrained.md +0 -19
- package/examples/docs/simpletypes-properties-number_unconstrained.md +0 -15
- package/examples/docs/simpletypes-properties-string_date.md +0 -19
- package/examples/docs/simpletypes-properties-string_email.md +0 -19
- package/examples/docs/simpletypes-properties-string_hostname.md +0 -19
- package/examples/docs/simpletypes-properties-string_ipv4.md +0 -19
- package/examples/docs/simpletypes-properties-string_ipv6.md +0 -19
- package/examples/docs/simpletypes-properties-string_length.md +0 -31
- package/examples/docs/simpletypes-properties-string_pattern-metaenum.md +0 -15
- package/examples/docs/simpletypes-properties-string_pattern.md +0 -39
- package/examples/docs/simpletypes-properties-string_pattern_noexample.md +0 -25
- package/examples/docs/simpletypes-properties-string_pattern_singleexample.md +0 -31
- package/examples/docs/simpletypes-properties-string_unconstrained.md +0 -21
- package/examples/docs/simpletypes-properties-string_uri.md +0 -19
- package/examples/docs/simpletypes-properties-yesno.md +0 -15
- package/examples/docs/simpletypes.md +0 -455
- package/examples/docs/stabilizing-properties-id.md +0 -19
- package/examples/docs/stabilizing.md +0 -43
- package/examples/docs/subdir-allof-0.md +0 -43
- package/examples/docs/subdir-definitions-content-properties-id.md +0 -19
- package/examples/docs/subdir-definitions-content-properties.md +0 -15
- package/examples/docs/subdir-definitions-content.md +0 -43
- package/examples/docs/subdir-definitions.md +0 -15
- package/examples/docs/subdir.md +0 -55
- package/examples/docs/typearrays-properties-null.md +0 -15
- package/examples/docs/typearrays-properties-string-or-null.md +0 -15
- package/examples/docs/typearrays-properties-string-or-number-null.md +0 -15
- package/examples/docs/typearrays-properties-string-or-number.md +0 -15
- package/examples/docs/typearrays.md +0 -96
- package/examples/docsWithoutHeader/arrays.schema.md +0 -254
- package/examples/generated-schemas/abstract.schema.json +0 -1
- package/examples/generated-schemas/arrays.schema.json +0 -1
- package/examples/generated-schemas/complex.schema.json +0 -1
- package/examples/generated-schemas/constants.schema.json +0 -1
- package/examples/generated-schemas/custom.schema.json +0 -1
- package/examples/generated-schemas/deepextending.schema.json +0 -1
- package/examples/generated-schemas/definitions.schema.json +0 -1
- package/examples/generated-schemas/enums.schema.json +0 -1
- package/examples/generated-schemas/example.schema.json +0 -1
- package/examples/generated-schemas/examples.schema.json +0 -1
- package/examples/generated-schemas/extending.schema.json +0 -1
- package/examples/generated-schemas/extensible.schema.json +0 -1
- package/examples/generated-schemas/identifiable.schema.json +0 -1
- package/examples/generated-schemas/join.schema.json +0 -1
- package/examples/generated-schemas/nestedobj.schema.json +0 -1
- package/examples/generated-schemas/pattern.schema.json +0 -1
- package/examples/generated-schemas/simple.schema.json +0 -1
- package/examples/generated-schemas/simpletypes.schema.json +0 -1
- package/examples/generated-schemas/stabilizing.schema.json +0 -1
- package/examples/generated-schemas/subdir/subdir.schema.json +0 -1
- package/examples/generated-schemas/typearrays.schema.json +0 -1
- package/examples/schemas/abstract.schema.json +0 -44
- package/examples/schemas/arrays.schema.json +0 -185
- package/examples/schemas/complex.schema.json +0 -123
- package/examples/schemas/constants.schema.json +0 -25
- package/examples/schemas/custom.schema.json +0 -41
- package/examples/schemas/deepextending.schema.json +0 -37
- package/examples/schemas/definitions.description.md +0 -17
- package/examples/schemas/definitions.schema.json +0 -46
- package/examples/schemas/enums.schema.json +0 -42
- package/examples/schemas/example.example.1.json +0 -4
- package/examples/schemas/example.schema.json +0 -29
- package/examples/schemas/examples.example.1.json +0 -4
- package/examples/schemas/examples.example.2.json +0 -4
- package/examples/schemas/examples.schema.json +0 -32
- package/examples/schemas/extending.schema.json +0 -38
- package/examples/schemas/extensible.schema.json +0 -38
- package/examples/schemas/identifiable.schema.json +0 -22
- package/examples/schemas/join.schema.json +0 -88
- package/examples/schemas/nestedobj.schema.json +0 -35
- package/examples/schemas/pattern.schema.json +0 -21
- package/examples/schemas/simple.schema.json +0 -22
- package/examples/schemas/simpletypes.schema.json +0 -151
- package/examples/schemas/stabilizing.schema.json +0 -23
- package/examples/schemas/subdir/subdir.schema.json +0 -29
- package/examples/schemas/typearrays.schema.json +0 -39
- package/examples/status.md +0 -3
- package/test/api.test.js +0 -55
- package/test/cyclicSchemaIntegration.test.js +0 -87
- package/test/fixtures/additionalprops/additionalprops.schema.json +0 -6
- package/test/fixtures/additionalprops/arrays.schema.json +0 -9
- package/test/fixtures/arrays/arrays.schema.json +0 -201
- package/test/fixtures/arrays/tuple.schema.json +0 -35
- package/test/fixtures/content/html.schema.json +0 -5
- package/test/fixtures/content/jwt.schema.json +0 -26
- package/test/fixtures/content/png.schema.json +0 -6
- package/test/fixtures/cyclic/one.description.md +0 -1
- package/test/fixtures/cyclic/one.example.1.json +0 -1
- package/test/fixtures/cyclic/one.schema.json +0 -17
- package/test/fixtures/cyclic/three.schema.json +0 -17
- package/test/fixtures/cyclic/two.schema.json +0 -17
- package/test/fixtures/deadref/deadref.schema.json +0 -6
- package/test/fixtures/enums/arrayenums.schema.json +0 -29
- package/test/fixtures/enums/enums.schema.json +0 -29
- package/test/fixtures/example/example.schema.json +0 -52
- package/test/fixtures/format/format.schema.json +0 -25
- package/test/fixtures/identifiable/identifiable.schema.json +0 -22
- package/test/fixtures/not/not.schema.json +0 -7
- package/test/fixtures/null/null.schema.json +0 -14
- package/test/fixtures/nullable/array.schema.json +0 -17
- package/test/fixtures/readme-1/abstract.schema.json +0 -50
- package/test/fixtures/readme-1/complex.schema.json +0 -118
- package/test/fixtures/readme-1/simple.schema.json +0 -30
- package/test/fixtures/skipproperties/complete.schema.json +0 -29
- package/test/fixtures/stringformats/simpletypes.schema.json +0 -211
- package/test/fixtures/title/meta.schema.json +0 -53
- package/test/fixtures/type/button.schema.json +0 -28
- package/test/fixtures/type/type.schema.json +0 -20
- package/test/fixtures/types/merged.schema.json +0 -10
- package/test/fixtures/types/object.schema.json +0 -3
- package/test/fixtures/types/objectorarray.schema.json +0 -3
- package/test/fixtures/types/undefined.schema.json +0 -3
- package/test/fixtures/types/wrong.schema.json +0 -6
- package/test/formatting.test.js +0 -59
- package/test/markdownBuilder.test.js +0 -441
- package/test/readmeBuilder.test.js +0 -106
- package/test/schemaProxy.test.js +0 -187
- package/test/testUtils.js +0 -88
- package/test/testintegration.test.js +0 -65
- package/test/traverseSchema.test.js +0 -111
- package/test/zSchemaCoverage.test.js +0 -186
package/examples/docs/subdir.md
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# Subdir Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://example.com/schemas/subdir/subdir
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
A schema in a sub directory
|
|
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 | [subdir.schema.json](../generated-schemas/subdir/subdir.schema.json "open original schema") |
|
|
12
|
-
|
|
13
|
-
## Subdir Type
|
|
14
|
-
|
|
15
|
-
`object` ([Subdir](subdir.md))
|
|
16
|
-
|
|
17
|
-
all of
|
|
18
|
-
|
|
19
|
-
* [Untitled undefined type in Subdir](subdir-allof-0.md "check type definition")
|
|
20
|
-
|
|
21
|
-
# Subdir Definitions
|
|
22
|
-
|
|
23
|
-
## Definitions group content
|
|
24
|
-
|
|
25
|
-
Reference this group by using
|
|
26
|
-
|
|
27
|
-
```json
|
|
28
|
-
{"$ref":"https://example.com/schemas/subdir/subdir#/definitions/content"}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
| Property | Type | Required | Nullable | Defined by |
|
|
32
|
-
| :-------- | :------- | :------- | :------------- | :----------------------------------------------------------------------------------------------------------------------------------- |
|
|
33
|
-
| [id](#id) | `string` | Optional | cannot be null | [Subdir](subdir-definitions-content-properties-id.md "https://example.com/schemas/subdir/subdir#/definitions/content/properties/id") |
|
|
34
|
-
|
|
35
|
-
### id
|
|
36
|
-
|
|
37
|
-
A unique identifier given to every addressable thing.
|
|
38
|
-
|
|
39
|
-
`id`
|
|
40
|
-
|
|
41
|
-
* is optional
|
|
42
|
-
|
|
43
|
-
* Type: `string`
|
|
44
|
-
|
|
45
|
-
* cannot be null
|
|
46
|
-
|
|
47
|
-
* defined in: [Subdir](subdir-definitions-content-properties-id.md "https://example.com/schemas/subdir/subdir#/definitions/content/properties/id")
|
|
48
|
-
|
|
49
|
-
#### id Type
|
|
50
|
-
|
|
51
|
-
`string`
|
|
52
|
-
|
|
53
|
-
#### id Constraints
|
|
54
|
-
|
|
55
|
-
**URI**: the string must be a URI, according to [RFC 3986](https://tools.ietf.org/html/rfc3986 "check the specification")
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled null in Type Arrays Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://example.com/schemas/typearrays#/properties/null
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
This is just nothing
|
|
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 | [typearrays.schema.json*](../generated-schemas/typearrays.schema.json "open original schema") |
|
|
12
|
-
|
|
13
|
-
## null Type
|
|
14
|
-
|
|
15
|
-
`null`, the value must be null
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled undefined type in Type Arrays Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://example.com/schemas/typearrays#/properties/string-or-null
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
Nullable string
|
|
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 | [typearrays.schema.json*](../generated-schemas/typearrays.schema.json "open original schema") |
|
|
12
|
-
|
|
13
|
-
## string-or-null Type
|
|
14
|
-
|
|
15
|
-
`string`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled undefined type in Type Arrays Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://example.com/schemas/typearrays#/properties/string-or-number-null
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
Types can be many things, even nothing at all.
|
|
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 | [typearrays.schema.json*](../generated-schemas/typearrays.schema.json "open original schema") |
|
|
12
|
-
|
|
13
|
-
## string-or-number-null Type
|
|
14
|
-
|
|
15
|
-
any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number-null.md))
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Untitled undefined type in Type Arrays Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://example.com/schemas/typearrays#/properties/string-or-number
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
Types can be many things
|
|
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 | [typearrays.schema.json*](../generated-schemas/typearrays.schema.json "open original schema") |
|
|
12
|
-
|
|
13
|
-
## string-or-number Type
|
|
14
|
-
|
|
15
|
-
any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number.md))
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
# Type Arrays Schema
|
|
2
|
-
|
|
3
|
-
```txt
|
|
4
|
-
https://example.com/schemas/typearrays
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
This schema test type arrays and nullable types
|
|
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 | [typearrays.schema.json](../generated-schemas/typearrays.schema.json "open original schema") |
|
|
12
|
-
|
|
13
|
-
## Type Arrays Type
|
|
14
|
-
|
|
15
|
-
`object` ([Type Arrays](typearrays.md))
|
|
16
|
-
|
|
17
|
-
# Type Arrays Properties
|
|
18
|
-
|
|
19
|
-
| Property | Type | Required | Nullable | Defined by |
|
|
20
|
-
| :---------------------------------------------- | :------------ | :------- | :------------- | :--------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
-
| [null](#null) | Not specified | Optional | can be null | [Type Arrays](typearrays-properties-null.md "https://example.com/schemas/typearrays#/properties/null") |
|
|
22
|
-
| [string-or-null](#string-or-null) | `string` | Optional | can be null | [Type Arrays](typearrays-properties-string-or-null.md "https://example.com/schemas/typearrays#/properties/string-or-null") |
|
|
23
|
-
| [string-or-number](#string-or-number) | Multiple | Optional | cannot be null | [Type Arrays](typearrays-properties-string-or-number.md "https://example.com/schemas/typearrays#/properties/string-or-number") |
|
|
24
|
-
| [string-or-number-null](#string-or-number-null) | Multiple | Optional | can be null | [Type Arrays](typearrays-properties-string-or-number-null.md "https://example.com/schemas/typearrays#/properties/string-or-number-null") |
|
|
25
|
-
|
|
26
|
-
## null
|
|
27
|
-
|
|
28
|
-
This is just nothing
|
|
29
|
-
|
|
30
|
-
`null`
|
|
31
|
-
|
|
32
|
-
* is optional
|
|
33
|
-
|
|
34
|
-
* Type: `null`, the value must be null
|
|
35
|
-
|
|
36
|
-
* can be null
|
|
37
|
-
|
|
38
|
-
* defined in: [Type Arrays](typearrays-properties-null.md "https://example.com/schemas/typearrays#/properties/null")
|
|
39
|
-
|
|
40
|
-
### null Type
|
|
41
|
-
|
|
42
|
-
`null`, the value must be null
|
|
43
|
-
|
|
44
|
-
## string-or-null
|
|
45
|
-
|
|
46
|
-
Nullable string
|
|
47
|
-
|
|
48
|
-
`string-or-null`
|
|
49
|
-
|
|
50
|
-
* is optional
|
|
51
|
-
|
|
52
|
-
* Type: `string`
|
|
53
|
-
|
|
54
|
-
* can be null
|
|
55
|
-
|
|
56
|
-
* defined in: [Type Arrays](typearrays-properties-string-or-null.md "https://example.com/schemas/typearrays#/properties/string-or-null")
|
|
57
|
-
|
|
58
|
-
### string-or-null Type
|
|
59
|
-
|
|
60
|
-
`string`
|
|
61
|
-
|
|
62
|
-
## string-or-number
|
|
63
|
-
|
|
64
|
-
Types can be many things
|
|
65
|
-
|
|
66
|
-
`string-or-number`
|
|
67
|
-
|
|
68
|
-
* is optional
|
|
69
|
-
|
|
70
|
-
* Type: any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number.md))
|
|
71
|
-
|
|
72
|
-
* cannot be null
|
|
73
|
-
|
|
74
|
-
* defined in: [Type Arrays](typearrays-properties-string-or-number.md "https://example.com/schemas/typearrays#/properties/string-or-number")
|
|
75
|
-
|
|
76
|
-
### string-or-number Type
|
|
77
|
-
|
|
78
|
-
any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number.md))
|
|
79
|
-
|
|
80
|
-
## string-or-number-null
|
|
81
|
-
|
|
82
|
-
Types can be many things, even nothing at all.
|
|
83
|
-
|
|
84
|
-
`string-or-number-null`
|
|
85
|
-
|
|
86
|
-
* is optional
|
|
87
|
-
|
|
88
|
-
* Type: any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number-null.md))
|
|
89
|
-
|
|
90
|
-
* can be null
|
|
91
|
-
|
|
92
|
-
* defined in: [Type Arrays](typearrays-properties-string-or-number-null.md "https://example.com/schemas/typearrays#/properties/string-or-number-null")
|
|
93
|
-
|
|
94
|
-
### string-or-number-null Type
|
|
95
|
-
|
|
96
|
-
any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number-null.md))
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
# Arrays Properties
|
|
2
|
-
|
|
3
|
-
| Property | Type | Required | Nullable | Defined by |
|
|
4
|
-
| --------------------------------- | ------------ | ---------- | -------- | ------------------------------------------ |
|
|
5
|
-
| [JoinTypelist](#jointypelist) | `array` | Optional | No | Arrays (this schema) |
|
|
6
|
-
| [boollist](#boollist) | `boolean[]` | Optional | No | Arrays (this schema) |
|
|
7
|
-
| [coordinatelist](#coordinatelist) | `number[][]` | Optional | No | Arrays (this schema) |
|
|
8
|
-
| [intlist](#intlist) | `integer[]` | Optional | No | Arrays (this schema) |
|
|
9
|
-
| [list](#list) | `string[]` | Optional | No | Arrays (this schema) |
|
|
10
|
-
| [listlist](#listlist) | `array[]` | Optional | No | Arrays (this schema) |
|
|
11
|
-
| [numlist](#numlist) | `number[]` | Optional | No | Arrays (this schema) |
|
|
12
|
-
| [objectlist](#objectlist) | `object[]` | Optional | No | Arrays (this schema) |
|
|
13
|
-
| [stringlistlist](#stringlistlist) | `string[][]` | Optional | No | Arrays (this schema) |
|
|
14
|
-
| `*` | any | Additional | Yes | this schema _allows_ additional properties |
|
|
15
|
-
|
|
16
|
-
## JoinTypelist
|
|
17
|
-
|
|
18
|
-
An array of simple objects
|
|
19
|
-
|
|
20
|
-
`JoinTypelist`
|
|
21
|
-
|
|
22
|
-
- is optional
|
|
23
|
-
- type: `array`
|
|
24
|
-
- defined in this schema
|
|
25
|
-
|
|
26
|
-
### JoinTypelist Type
|
|
27
|
-
|
|
28
|
-
Array type: `array`
|
|
29
|
-
|
|
30
|
-
All items must be of the type:
|
|
31
|
-
|
|
32
|
-
**One** of the following _conditions_ need to be fulfilled.
|
|
33
|
-
|
|
34
|
-
#### Condition 1
|
|
35
|
-
|
|
36
|
-
`object` with following properties:
|
|
37
|
-
|
|
38
|
-
| Property | Type | Required |
|
|
39
|
-
| -------- | ------ | -------- |
|
|
40
|
-
| `foo` | string | Optional |
|
|
41
|
-
|
|
42
|
-
#### foo
|
|
43
|
-
|
|
44
|
-
A simple string.
|
|
45
|
-
|
|
46
|
-
`foo`
|
|
47
|
-
|
|
48
|
-
- is optional
|
|
49
|
-
- type: `string`
|
|
50
|
-
|
|
51
|
-
##### foo Type
|
|
52
|
-
|
|
53
|
-
`string`
|
|
54
|
-
|
|
55
|
-
##### foo Example
|
|
56
|
-
|
|
57
|
-
```json
|
|
58
|
-
hello
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
#### Condition 2
|
|
62
|
-
|
|
63
|
-
`object` with following properties:
|
|
64
|
-
|
|
65
|
-
| Property | Type | Required |
|
|
66
|
-
| -------- | ------ | -------- |
|
|
67
|
-
| `bar` | string | Optional |
|
|
68
|
-
|
|
69
|
-
#### bar
|
|
70
|
-
|
|
71
|
-
A simple string.
|
|
72
|
-
|
|
73
|
-
`bar`
|
|
74
|
-
|
|
75
|
-
- is optional
|
|
76
|
-
- type: `string`
|
|
77
|
-
|
|
78
|
-
##### bar Type
|
|
79
|
-
|
|
80
|
-
`string`
|
|
81
|
-
|
|
82
|
-
##### bar Example
|
|
83
|
-
|
|
84
|
-
```json
|
|
85
|
-
world
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## boollist
|
|
89
|
-
|
|
90
|
-
This is an array
|
|
91
|
-
|
|
92
|
-
`boollist`
|
|
93
|
-
|
|
94
|
-
- is optional
|
|
95
|
-
- type: `boolean[]`
|
|
96
|
-
- at least `1` items in the array
|
|
97
|
-
- defined in this schema
|
|
98
|
-
|
|
99
|
-
### boollist Type
|
|
100
|
-
|
|
101
|
-
Array type: `boolean[]`
|
|
102
|
-
|
|
103
|
-
All items must be of the type: `boolean`
|
|
104
|
-
|
|
105
|
-
## coordinatelist
|
|
106
|
-
|
|
107
|
-
This is an array of coordinates in three-dimensional space.
|
|
108
|
-
|
|
109
|
-
`coordinatelist`
|
|
110
|
-
|
|
111
|
-
- is optional
|
|
112
|
-
- type: `number[][]` (nested array)
|
|
113
|
-
- no more than `10` items in the array
|
|
114
|
-
- defined in this schema
|
|
115
|
-
|
|
116
|
-
### coordinatelist Type
|
|
117
|
-
|
|
118
|
-
Nested array type: `number[]`
|
|
119
|
-
|
|
120
|
-
All items must be of the type: `number`
|
|
121
|
-
|
|
122
|
-
- minimum value: `0`
|
|
123
|
-
- maximum value: `10`
|
|
124
|
-
|
|
125
|
-
A coordinate, specified by `x`, `y`, and `z` values
|
|
126
|
-
|
|
127
|
-
## intlist
|
|
128
|
-
|
|
129
|
-
This is an array
|
|
130
|
-
|
|
131
|
-
`intlist`
|
|
132
|
-
|
|
133
|
-
- is optional
|
|
134
|
-
- type: `integer[]`
|
|
135
|
-
- between `1` and `10` items in the array
|
|
136
|
-
- defined in this schema
|
|
137
|
-
|
|
138
|
-
### intlist Type
|
|
139
|
-
|
|
140
|
-
Array type: `integer[]`
|
|
141
|
-
|
|
142
|
-
All items must be of the type: `integer`
|
|
143
|
-
|
|
144
|
-
## list
|
|
145
|
-
|
|
146
|
-
This is an array
|
|
147
|
-
|
|
148
|
-
`list`
|
|
149
|
-
|
|
150
|
-
- is optional
|
|
151
|
-
- type: `string[]`
|
|
152
|
-
- defined in this schema
|
|
153
|
-
|
|
154
|
-
### list Type
|
|
155
|
-
|
|
156
|
-
Array type: `string[]`
|
|
157
|
-
|
|
158
|
-
All items must be of the type: `string`
|
|
159
|
-
|
|
160
|
-
## listlist
|
|
161
|
-
|
|
162
|
-
This is an array of arrays
|
|
163
|
-
|
|
164
|
-
`listlist`
|
|
165
|
-
|
|
166
|
-
- is optional
|
|
167
|
-
- type: `array[]` (nested array)
|
|
168
|
-
- defined in this schema
|
|
169
|
-
|
|
170
|
-
### listlist Type
|
|
171
|
-
|
|
172
|
-
Nested array type: `array`
|
|
173
|
-
|
|
174
|
-
## numlist
|
|
175
|
-
|
|
176
|
-
This is an array
|
|
177
|
-
|
|
178
|
-
`numlist`
|
|
179
|
-
|
|
180
|
-
- is optional
|
|
181
|
-
- type: `number[]`
|
|
182
|
-
- no more than `10` items in the array
|
|
183
|
-
- defined in this schema
|
|
184
|
-
|
|
185
|
-
### numlist Type
|
|
186
|
-
|
|
187
|
-
Array type: `number[]`
|
|
188
|
-
|
|
189
|
-
All items must be of the type: `number`
|
|
190
|
-
|
|
191
|
-
- minimum value: `10`
|
|
192
|
-
|
|
193
|
-
## objectlist
|
|
194
|
-
|
|
195
|
-
An array of simple objects
|
|
196
|
-
|
|
197
|
-
`objectlist`
|
|
198
|
-
|
|
199
|
-
- is optional
|
|
200
|
-
- type: `object[]`
|
|
201
|
-
- defined in this schema
|
|
202
|
-
|
|
203
|
-
### objectlist Type
|
|
204
|
-
|
|
205
|
-
Array type: `object[]`
|
|
206
|
-
|
|
207
|
-
All items must be of the type: `object` with following properties:
|
|
208
|
-
|
|
209
|
-
| Property | Type | Required |
|
|
210
|
-
| -------- | ------- | ------------ |
|
|
211
|
-
| `a` | string | **Required** |
|
|
212
|
-
| `b` | integer | Optional |
|
|
213
|
-
|
|
214
|
-
#### a
|
|
215
|
-
|
|
216
|
-
The a property
|
|
217
|
-
|
|
218
|
-
`a`
|
|
219
|
-
|
|
220
|
-
- is **required**
|
|
221
|
-
- type: `string`
|
|
222
|
-
|
|
223
|
-
##### a Type
|
|
224
|
-
|
|
225
|
-
`string`
|
|
226
|
-
|
|
227
|
-
#### b
|
|
228
|
-
|
|
229
|
-
The b property
|
|
230
|
-
|
|
231
|
-
`b`
|
|
232
|
-
|
|
233
|
-
- is optional
|
|
234
|
-
- type: `integer`
|
|
235
|
-
|
|
236
|
-
##### b Type
|
|
237
|
-
|
|
238
|
-
`integer`
|
|
239
|
-
|
|
240
|
-
## stringlistlist
|
|
241
|
-
|
|
242
|
-
This is an array of arrays of strings
|
|
243
|
-
|
|
244
|
-
`stringlistlist`
|
|
245
|
-
|
|
246
|
-
- is optional
|
|
247
|
-
- type: `string[][]` (nested array)
|
|
248
|
-
- defined in this schema
|
|
249
|
-
|
|
250
|
-
### stringlistlist Type
|
|
251
|
-
|
|
252
|
-
Nested array type: `string[]`
|
|
253
|
-
|
|
254
|
-
All items must be of the type: `string`
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/abstract","title":"Abstract","description":"This is an abstract schema. It has `definitions`, but does not declare any properties","type":"object","definitions":{"first":{"type":"object","properties":{"foo":{"type":"string","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"},"nonfoo":{"type":"boolean","const":false,"description":"This is not foo.","version":"1.0.0","testProperty":"test"}}},"second":{"type":"object","properties":{"bar":{"type":"string","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"}}}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/arrays","title":"Arrays","type":"object","description":"This is an example schema with examples for multiple array types and their constraints.","properties":{"tuple":{"type":"array","description":"This is an array of two values, one positive, one negative. All additional values must be 0.","items":[{"title":"Positive Integer","type":"integer","minimum":0},{"title":"Negative Integer","type":"integer","maximum":0}],"additionalItems":{"title":"Zero","const":0}},"list":{"type":"array","description":"This is an array","items":{"type":"string"},"version":"1.0.0","testProperty":"test"},"listlist":{"type":"array","description":"This is an array of arrays","items":{"type":"array"},"version":"1.0.0","testProperty":"test"},"stringlistlist":{"type":"array","description":"This is an array of arrays of strings","items":{"type":"array","items":{"type":"string"}},"version":"1.0.0","testProperty":"test"},"intlist":{"type":"array","description":"This is an array","items":{"type":"integer"},"maxItems":10,"minItems":1,"version":"1.0.0","testProperty":"test"},"boollist":{"type":"array","description":"This is an array","items":{"type":"boolean"},"minItems":1,"version":"1.0.0","testProperty":"test"},"numlist":{"type":"array","description":"This is an array","items":{"type":"number","minimum":10},"maxItems":10,"version":"1.0.0","testProperty":"test"},"coordinatelist":{"type":"array","description":"This is an array of coordinates in three-dimensional space.","items":{"type":"array","minItems":3,"maxItems":3,"description":"A coordinate, specified by `x`, `y`, and `z` values","items":{"type":"number","minimum":0,"maximum":10},"version":"1.0.0","testProperty":"test"},"version":"1.0.0","testProperty":"test","maxItems":10},"objectlist":{"type":"array","description":"An array of simple objects","items":{"type":"object","required":["a"],"properties":{"a":{"type":"string","description":"The a property","version":"1.0.0","testProperty":"test"},"b":{"type":"integer","description":"The b property","version":"1.0.0","testProperty":"test"}}},"version":"1.0.0","testProperty":"test"},"JoinTypelist":{"type":"array","description":"An array of simple objects","items":{"oneOf":[{"type":"object","description":"A simple string.","properties":{"foo":{"type":"string","description":"A simple string.","examples":["hello"],"version":"1.0.0","testProperty":"test"}},"version":"1.0.0","testProperty":"test"},{"type":"object","description":"Another simple string.","properties":{"bar":{"type":"string","description":"A simple string.","examples":["world"],"version":"1.0.0","testProperty":"test"}}}]},"version":"1.0.0","testProperty":"test"}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/complex","title":"Complex References","type":"object","description":"This is an example schema that uses types defined in other schemas.","properties":{"refabstract":{"$ref":"https://example.com/schemas/abstract#/definitions/first","version":"1.0.0","testProperty":"test"},"refnamed":{"$ref":"https://example.com/schemas/simple","version":"1.0.0","testProperty":"test"},"refrefed":{"$ref":"#/properties/refnamed","version":"1.0.0","testProperty":"test"},"refobj":{"type":"object","properties":{"foo":{"$ref":"https://example.com/schemas/simple","version":"1.0.0","testProperty":"test"}},"version":"1.0.0","testProperty":"test"},"refnestedobj":{"type":"object","properties":{"refobj":{"type":"object","version":"1.0.0","testProperty":"test","properties":{"foo":{"$ref":"https://example.com/schemas/simple","version":"1.0.0","testProperty":"test"}}}},"version":"1.0.0","testProperty":"test"},"reflocalfile":{"$ref":"simple.schema.json#","version":"1.0.0","testProperty":"test"},"reflocalfiledef":{"type":"object","version":"1.0.0","testProperty":"test","properties":{"third":{"$ref":"file://extending.schema.json#/definitions/third","version":"1.0.0","testProperty":"test"}}},"or":{"description":"String or number…","anyOf":[{"type":"string"},{"type":"number","minimum":0}],"version":"1.0.0","testProperty":"test"},"and":{"description":"Number in a range","allOf":[{"type":"number","maximum":10},{"type":"number","minimum":0}],"version":"1.0.0","testProperty":"test"},"xor":{"description":"Exclusive choice.","oneOf":[{"type":"number","maximum":0},{"type":"number","minimum":10}],"version":"1.0.0","testProperty":"test"}},"required":["refabstract"],"additionalProperties":{"type":"boolean"},"patternProperties":{"int.*":{"type":"integer","version":"1.0.0","testProperty":"test"},"str.*":{"type":"string","version":"1.0.0","testProperty":"test"}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/constants","title":"Constant Types","type":"object","description":"This is an example schema with examples for properties with constant values","properties":{"hello":{"type":"string","const":"World","description":"A simple string, without strong constraints.","version":"1.0.0","testProperty":"test"}},"required":["hello"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/custom","title":"Custom","description":"This is an extensible schema. It has `definitions`, that can be used in other schemas. Additionally, it allows custom properties.","type":"object","meta:extensible":true,"definitions":{"first":{"properties":{"foo":{"type":"string","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"}}},"second":{"properties":{"bar":{"type":"string","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"}}}},"allOf":[{"$ref":"https://ns.adobe.com/xdm/common/extensible.schema.json#/definitions/@context"},{"$ref":"#/definitions/first"},{"$ref":"#/definitions/second"}]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/deepextending","title":"Deeply Extending","description":"This is an extending schema. It is extending another extending schema. It pulls `definitions` from other schemas.","type":"object","meta:extensible":true,"meta:extends":["https://example.com/schemas/definitions","https://example.com/schemas/extensible","https://example.com/schemas/extending"],"definitions":{"fourth":{"properties":{"hey":{"type":"string","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"}}}},"allOf":[{"$ref":"https://example.com/schemas/extensible#/definitions/second"},{"$ref":"https://example.com/schemas/definitions#/definitions/myid"},{"$ref":"https://example.com/schemas/extending#/definitions/third"},{"$ref":"#/definitions/fourth"}]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/definitions","title":"Definitions","type":"object","definitions":{"myid":{"properties":{"id":{"type":"string","format":"uri-reference","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"},"@id":{"type":"string","format":"uri","description":"An `id` with an `@` in front of it. The `@` stands for \"dot com\"","version":"1.0.0","testProperty":"test"},"meta:id":{"type":"string","format":"email","description":"An about ids. It is meta. If you are confused, send an email to the address specified in this property value.","version":"1.0.0","testProperty":"test"}},"required":["@id"]}},"allOf":[{"$ref":"#/definitions/myid"}],"required":["id"],"description":"This is an example of using a `definitions` object within a schema.\n\nIt is imported using `allOf` and `$ref`.\n\nAnd the description has line breaks.\n\nSo.\n\nMany.\n\nLine.\n\nBre-\n\naks.\n\n> Everything is better with a quote.\n"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/enums","title":"Enumerated ","type":"object","description":"This is an example schema with examples for properties with enum values","properties":{"hello":{"type":"string","enum":["World","Welt"],"description":"A simple string. Pick a value.","version":"1.0.0","testProperty":"test"},"nested":{"title":"Enumerated (Nested)","description":"This is an example schema with examples for properties of nested objects with enum values","type":"object","properties":{"test":{"type":"string","enum":["nested","object","works"],"description":"A simple string. Pick a value.","version":"1.0.0","testProperty":"test"}},"version":"1.0.0","testProperty":"test"}},"required":["hello"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/example","title":"Example","type":"object","description":"This is an example schema with examples. Too many examples? There can never be too many examples!","properties":{"foo":{"type":"string","description":"A simple string.","examples":["bar"],"version":"1.0.0","testProperty":"test"},"bar":{"type":"string","description":"A simple string.","examples":["bar","baz"],"version":"1.0.0","testProperty":"test"}},"examples":[{"foo":"bar","bar":"baz"}]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/examples","title":"Examples","type":"object","description":"This is an example schema with *multiple* examples. Too many examples? There can never be too many examples!","properties":{"foo":{"type":"string","description":"A simple string.","examples":["bar"],"version":"1.0.0","testProperty":"test"},"bar":{"type":"string","description":"A simple string.","examples":["bar","baz"],"version":"1.0.0","testProperty":"test"}},"required":["bar"],"examples":[{"foo":"bi","bar":"bu"},{"foo":"zip","bar":"zap"}]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/extending","title":"Extending","description":"This is an extending schema. It pulls `definitions` from other schemas.","type":"object","meta:extensible":true,"meta:extends":["https://example.com/schemas/definitions","https://example.com/schemas/extensible"],"definitions":{"third":{"type":"object","properties":{"baz":{"type":"string","title":"BAAAZ!","examples":["I'm just a humble example"],"description":"This property has a unique name to demonstrate it's uniqueness.","version":"1.0.0","testProperty":"test"}}}},"allOf":[{"$ref":"https://example.com/schemas/extensible#/definitions/second"},{"$ref":"https://example.com/schemas/definitions#/definitions/myid"},{"$ref":"#/definitions/third"}]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/extensible","title":"Extensible","description":"This is an extensible schema. It has `definitions`, that can be used in other schemas","type":"object","meta:extensible":true,"definitions":{"first":{"properties":{"foo":{"type":"string","examples":["bar"],"description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"}}},"second":{"properties":{"bar":{"type":"string","examples":["whoo","hoo"],"description":"A horse walks into it.","version":"1.0.0","testProperty":"test"}}}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/identifiable","title":"Identifiable","description":"This is a *very* simple example of a JSON schema. There is only one property.","type":"object","properties":{"@id":{"type":"string","format":"uri","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/join","title":"Join Types","description":"This is an example of a JSON schema with only a join type key. Here a 'oneOf'.","oneOf":[{"not":{"oneOf":[{"type":"object","description":"A simple string.","properties":{"foo":{"type":"string","description":"A simple string.","examples":["hello"],"version":"1.0.0","testProperty":"test"}}},{"type":"object","description":"Another simple string.","properties":{"bar":{"type":"string","description":"A simple string.","examples":["world"],"version":"1.0.0","testProperty":"test"}}}]}},{"allOf":[{"type":"object","description":"A simple string.","properties":{"foo":{"type":"string","description":"A simple string.","examples":["hello"],"version":"1.0.0","testProperty":"test"}}}]},{"anyOf":[{"type":"object","description":"Another simple string.","properties":{"bar":{"type":"string","description":"A simple string.","examples":["world"],"version":"1.0.0","testProperty":"test"}}}]}]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"$id":"https://example.com/schemas/nestedobject","$schema":"http://json-schema.org/draft-07/schema","title":"Nested Object","type":"object","properties":{"settings":{"description":"settings","type":"object","properties":{"collaborators":{"description":"collaborators","type":"object","patternProperties":{".*":{"type":"string"}},"properties":{"id":{"type":"string","version":"1.0.0","testProperty":"test"}},"version":"1.0.0","testProperty":"test"}},"version":"1.0.0","testProperty":"test"}},"additionalProperties":false}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/pattern","title":"Pattern Properties","description":"This is an example of a JSON schema with only a `patternProperties` key.","patternProperties":{"[0-9]":{"type":"string","description":"A simple string.","examples":["bar"],"version":"1.0.0","testProperty":"test"}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/simple","title":"Simple","description":"This is a *very* simple example of a JSON schema. There is only one property.","type":"object","properties":{"id":{"type":"string","format":"uri","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/simpletypes","title":"Simple Types","type":"object","description":"This is an example schema with examples for multiple types and their constraints.","properties":{"string_unconstrained":{"type":"string","description":"A simple string, without any constraints.","examples":["bar"],"version":"1.0.0","testProperty":"test"},"string_length":{"type":"string","description":"A string with minumum and maximum length","examples":["bar","baz"],"minLength":3,"maxLength":3,"version":"1.0.0","testProperty":"test"},"string_pattern":{"type":"string","description":"A string following a regular expression","pattern":"^ba.$","examples":["bar","baz","bat"],"meta:enum":{"baa":"the sounds of sheeps","bad":"German bathroom","bag":"holding device","bah":"humbug!","bam":"a loud sound","ban":"don't do this","bap":"a British soft bread roll","bas":"from ancient Egyptian religion, an aspect of the soul","bat":"…out of hell","bay":", sitting by the dock of the"},"version":"1.0.0","testProperty":"test"},"string_pattern_noexample":{"type":"string","description":"A string following a regular expression","pattern":"^ba.$","version":"1.0.0","testProperty":"test"},"string_pattern_singleexample":{"type":"string","description":"A string following a regular expression","pattern":"^ba.$","examples":["bar"],"version":"1.0.0","testProperty":"test"},"string_date":{"type":"string","description":"A date-like string.","format":"date-time","version":"1.0.0","testProperty":"test"},"string_email":{"type":"string","description":"An email-like string.","format":"email","version":"1.0.0","testProperty":"test"},"string_hostname":{"type":"string","description":"A hostname-like string.","format":"hostname","version":"1.0.0","testProperty":"test"},"string_ipv4":{"type":"string","description":"An IPv4-like string.","format":"ipv4","version":"1.0.0","testProperty":"test"},"string_ipv6":{"type":"string","description":"An IPv6-like string.","format":"ipv6","version":"1.0.0","testProperty":"test"},"string_uri":{"type":"string","description":"A URI.","format":"uri","version":"1.0.0","testProperty":"test"},"number_unconstrained":{"type":"number","description":"Just a number","version":"1.0.0","testProperty":"test"},"interger_unconstrained":{"type":"integer","description":"Just a whole number. I don't like fractions.","version":"1.0.0","testProperty":"test"},"interger_constrained":{"type":"integer","description":"Just a whole number. I don't like fractions. Don't get too small","minimum":10,"version":"1.0.0","testProperty":"test"},"number_constrained":{"type":"number","description":"Just a number. Don't get too big.","exclusiveMaximum":10,"version":"1.0.0","testProperty":"test"},"integer_threes":{"type":"integer","description":"Guess what number is valid","multipleOf":3,"minimum":2,"maximum":4,"version":"1.0.0","testProperty":"test"},"yesno":{"type":"boolean","version":"1.0.0","testProperty":"test"}},"required":["yesno"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/stabilizing","title":"Stabilizing","description":"This is a schema which is currently in the `stabilizing` status.","meta:status":"stabilizing","type":"object","properties":{"id":{"type":"string","format":"uri","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/subdir/subdir","title":"Subdir","type":"object","description":"A schema in a sub directory","definitions":{"content":{"properties":{"id":{"type":"string","format":"uri","description":"A unique identifier given to every addressable thing.","version":"1.0.0","testProperty":"test"}}}},"allOf":[{"$ref":"#/definitions/content"}]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2017 Adobe Systems Incorporated. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the 'License');","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0"],"$schema":"http://json-schema.org/draft-06/schema#","$id":"https://example.com/schemas/typearrays","title":"Type Arrays","description":"This schema test type arrays and nullable types","type":"object","properties":{"null":{"type":"null","description":"This is just nothing","version":"1.0.0","testProperty":"test"},"string-or-null":{"type":["string","null"],"description":"Nullable string","version":"1.0.0","testProperty":"test"},"string-or-number":{"type":["string","number"],"description":"Types can be many things","version":"1.0.0","testProperty":"test"},"string-or-number-null":{"type":["string","number","null"],"description":"Types can be many things, even nothing at all.","version":"1.0.0","testProperty":"test"}}}
|