Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9a1b826

Browse files
committed
Dont use # in $schema values
Since we're now very strongly discouraging fragments in $id, let's not use them in $schema either. It works either way, but I like the consistency. Stylistically, referring to "#" internally makes sense, while using an absolute-URI per RFC 3986 (no fragment) makes sense externally.
1 parent 27e62ef commit 9a1b826

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

‎jsonschema-core.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@
13351335
<artwork>
13361336
<![CDATA[
13371337
{
1338-
"$schema": "https://json-schema.org/draft/2019-08/core-app-example#",
1338+
"$schema": "https://json-schema.org/draft/2019-08/core-app-example",
13391339
"$id": "https://json-schema.org/draft/2019-08/core-app-example",
13401340
"$recursiveAnchor": true,
13411341
"$vocabulary": {
@@ -1744,7 +1744,7 @@
17441744
<artwork>
17451745
<![CDATA[
17461746
{
1747-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
1747+
"$schema": "https://json-schema.org/draft/2019-08/schema",
17481748
"$id": "https://example.com/original",
17491749
17501750
"properties": {
@@ -1758,7 +1758,7 @@
17581758
}
17591759
17601760
{
1761-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
1761+
"$schema": "https://json-schema.org/draft/2019-08/schema",
17621762
"$id": "https://example.com/extension",
17631763
17641764
"$ref": "original",
@@ -1857,7 +1857,7 @@
18571857
<artwork>
18581858
<![CDATA[
18591859
{
1860-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
1860+
"$schema": "https://json-schema.org/draft/2019-08/schema",
18611861
"$id": "https://example.com/original",
18621862
"$recursiveAnchor": true,
18631863
@@ -1872,7 +1872,7 @@
18721872
}
18731873
18741874
{
1875-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
1875+
"$schema": "https://json-schema.org/draft/2019-08/schema",
18761876
"$id": "https://example.com/extension",
18771877
"$recursiveAnchor": true,
18781878

‎jsonschema-hyperschema.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ Link: <https://schema.example.com/entry>; rel="describedBy"
16181618
<![CDATA[
16191619
{
16201620
"$id": "https://schema.example.com/entry",
1621-
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema#",
1621+
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema",
16221622
"base": "https://example.com/api/",
16231623
"links": [
16241624
{
@@ -1692,7 +1692,7 @@ Link: <https://schema.example.com/entry>; rel="describedBy"
16921692
<artwork>
16931693
<![CDATA[{
16941694
"$id": "https://schema.example.com/thing",
1695-
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema#",
1695+
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema",
16961696
"base": "https://example.com/api/",
16971697
"type": "object",
16981698
"required": ["data"],
@@ -1808,7 +1808,7 @@ Link: <https://schema.example.com/entry>; rel="describedBy"
18081808
<artwork>
18091809
<![CDATA[{
18101810
"$id": "https://schema.example.com/interesting-stuff",
1811-
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema#",
1811+
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema",
18121812
"required": ["stuffWorthEmailingAbout", "email", "title"],
18131813
"properties": {
18141814
"title": {
@@ -1995,7 +1995,7 @@ Link: <https://example.com/api/trees/1/nodes/456>; rev="up"
19951995
<artwork>
19961996
<![CDATA[{
19971997
"$id": "https://schema.example.com/tree-node",
1998-
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema#",
1998+
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema",
19991999
"base": "trees/{treeId}/",
20002000
"properties": {
20012001
"id": {"type": "integer"},
@@ -2057,7 +2057,7 @@ Link: <https://example.com/api/trees/1/nodes/456>; rev="up"
20572057
<artwork>
20582058
<![CDATA[{
20592059
"$id": "https://schema.example.com/thing",
2060-
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema#",
2060+
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema",
20612061
"base": "https://example.com/api/",
20622062
"type": "object",
20632063
"required": ["data"],
@@ -2110,7 +2110,7 @@ Link: <https://example.com/api/trees/1/nodes/456>; rev="up"
21102110
<artwork>
21112111
<![CDATA[{
21122112
"$id": "https://schema.example.com/thing-collection",
2113-
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema#",
2113+
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema",
21142114
"base": "https://example.com/api/",
21152115
"type": "object",
21162116
"required": ["elements"],

‎meta/applicator.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/schema",
33
"$id": "https://json-schema.org/draft/2019-08/meta/applicator",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-08/vocab/applicator": true

‎meta/content.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/schema",
33
"$id": "https://json-schema.org/draft/2019-08/meta/content",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-08/vocab/content": true

‎meta/core.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/schema",
33
"$id": "https://json-schema.org/draft/2019-08/meta/core",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-08/vocab/core": true

‎meta/format.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/schema",
33
"$id": "https://json-schema.org/draft/2019-08/meta/format",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-08/vocab/format": true

‎meta/hyper-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema",
33
"$id": "https://json-schema.org/draft/2019-08/meta/hyper-schema",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-08/vocab/hyper-schema": true

‎meta/meta-data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/schema",
33
"$id": "https://json-schema.org/draft/2019-08/meta/meta-data",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-08/vocab/meta-data": true

‎meta/validation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/schema",
33
"$id": "https://json-schema.org/draft/2019-08/meta/validation",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-08/vocab/validation": true

‎output/hyper-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/schema",
33
"$id": "https://json-schema.org/draft/2019-08/output/hyper-schema",
44
"title": "JSON Hyper-Schema Output",
55
"type": "array",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /