-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
228 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
1 { | ||
2 "$id": "http://example.com/example.json", | ||
3 "type": "array", | ||
4 "definitions": {}, | ||
5 "$schema": "http://json-schema.org/draft-06/schema#", | ||
6 "items": { | ||
7 "$id": "http://example.com/example.json/items", | ||
8 "type": "object", | ||
9 "properties": { | ||
10 "color": { | ||
11 "$id": "http://example.com/example.json/items/properties/color", | ||
12 "type": "string", | ||
13 "title": "The Color Schema", | ||
14 "description": "An explanation about the purpose of this instance.", | ||
15 "default": "", | ||
16 "examples": [ | ||
17 "fff000" | ||
18 ] | ||
19 }, | ||
20 "items": { | ||
21 "$id": "http://example.com/example.json/items/properties/items", | ||
22 "type": "array", | ||
23 "items": { | ||
24 "$id": "http://example.com/example.json/items/properties/items/items", | ||
25 "type": "object", | ||
26 "properties": { | ||
27 "desc-en": { | ||
28 "$id": "http://example.com/example.json/items/properties/items/items/properties/desc-en", | ||
29 "type": "string", | ||
30 "title": "The Desc-en Schema", | ||
31 "description": "An explanation about the purpose of this instance.", | ||
32 "default": "", | ||
33 "examples": [ | ||
34 "Matches at the start of string or start of line if multi-line mode is enabled. Many regex implementations have multi-line mode enabled by default." | ||
35 ] | ||
36 }, | ||
37 "sign": { | ||
38 "$id": "http://example.com/example.json/items/properties/items/items/properties/sign", | ||
39 "type": "string", | ||
40 "title": "The Sign Schema", | ||
41 "description": "An explanation about the purpose of this instance.", | ||
42 "default": "", | ||
43 "examples": [ | ||
44 "^" | ||
45 ] | ||
46 } | ||
47 } | ||
48 } | ||
49 }, | ||
50 "title": { | ||
51 "$id": "http://example.com/example.json/items/properties/title", | ||
52 "type": "string", | ||
53 "title": "The Title Schema", | ||
54 "description": "An explanation about the purpose of this instance.", | ||
55 "default": "", | ||
56 "examples": [ | ||
57 "Anchors" | ||
58 ] | ||
59 } | ||
60 } | ||
61 } | ||
62 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
1 <?xml version="1.0" ?> | ||
2 <root> | ||
3 <key name="$id">http://example.com/example.json</key> | ||
4 <type>array</type> | ||
5 <definitions/> | ||
6 <key name="$schema">http://json-schema.org/draft-06/schema#</key> | ||
7 <items> | ||
8 <key name="$id">http://example.com/example.json/items</key> | ||
9 <type>object</type> | ||
10 <properties> | ||
11 <color> | ||
12 <key name="$id">http://example.com/example.json/items/properties/color</key> | ||
13 <type>string</type> | ||
14 <title>The Color Schema</title> | ||
15 <description>An explanation about the purpose of this instance.</description> | ||
16 <default/> | ||
17 <examples> | ||
18 <item>fff000</item> | ||
19 </examples> | ||
20 </color> | ||
21 <items> | ||
22 <key name="$id">http://example.com/example.json/items/properties/items</key> | ||
23 <type>array</type> | ||
24 <items> | ||
25 <key name="$id">http://example.com/example.json/items/properties/items/items</key> | ||
26 <type>object</type> | ||
27 <properties> | ||
28 <desc-en> | ||
29 <key name="$id">http://example.com/example.json/items/properties/items/items/properties/desc-en</key> | ||
30 <type>string</type> | ||
31 <title>The Desc-en Schema</title> | ||
32 <description>An explanation about the purpose of this instance.</description> | ||
33 <default/> | ||
34 <examples> | ||
35 <item>Matches at the start of string or start of line if multi-line mode is enabled. Many regex implementations have multi-line mode enabled by default.</item> | ||
36 </examples> | ||
37 </desc-en> | ||
38 <sign> | ||
39 <key name="$id">http://example.com/example.json/items/properties/items/items/properties/sign</key> | ||
40 <type>string</type> | ||
41 <title>The Sign Schema</title> | ||
42 <description>An explanation about the purpose of this instance.</description> | ||
43 <default/> | ||
44 <examples> | ||
45 <item>^</item> | ||
46 </examples> | ||
47 </sign> | ||
48 </properties> | ||
49 </items> | ||
50 </items> | ||
51 <title> | ||
52 <key name="$id">http://example.com/example.json/items/properties/title</key> | ||
53 <type>string</type> | ||
54 <title>The Title Schema</title> | ||
55 <description>An explanation about the purpose of this instance.</description> | ||
56 <default/> | ||
57 <examples> | ||
58 <item>Anchors</item> | ||
59 </examples> | ||
60 </title> | ||
61 </properties> | ||
62 </items> | ||
63 </root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
1 $id: http://example.com/example.json | ||
2 type: array | ||
3 definitions: {} | ||
4 $schema: http://json-schema.org/draft-06/schema# | ||
5 items: | ||
6 $id: http://example.com/example.json/items | ||
7 type: object | ||
8 properties: | ||
9 color: | ||
10 $id: http://example.com/example.json/items/properties/color | ||
11 type: string | ||
12 title: The Color Schema | ||
13 description: An explanation about the purpose of this instance. | ||
14 default: '' | ||
15 examples: | ||
16 - fff000 | ||
17 items: | ||
18 $id: http://example.com/example.json/items/properties/items | ||
19 type: array | ||
20 items: | ||
21 $id: http://example.com/example.json/items/properties/items/items | ||
22 type: object | ||
23 properties: | ||
24 desc-en: | ||
25 $id: http://example.com/example.json/items/properties/items/items/properties/desc-en | ||
26 type: string | ||
27 title: The Desc-en Schema | ||
28 description: An explanation about the purpose of this instance. | ||
29 default: '' | ||
30 examples: | ||
31 - Matches at the start of string or start of line if multi-line mode is | ||
32 enabled. Many regex implementations have multi-line mode enabled by | ||
33 default. | ||
34 sign: | ||
35 $id: http://example.com/example.json/items/properties/items/items/properties/sign | ||
36 type: string | ||
37 title: The Sign Schema | ||
38 description: An explanation about the purpose of this instance. | ||
39 default: '' | ||
40 examples: | ||
41 - ^ | ||
42 title: | ||
43 $id: http://example.com/example.json/items/properties/title | ||
44 type: string | ||
45 title: The Title Schema | ||
46 description: An explanation about the purpose of this instance. | ||
47 default: '' | ||
48 examples: | ||
49 - Anchors |