Skip to content

Commit e0098e1

Browse files
committed
Add a new x-links property for linking to standards
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent 0b84b05 commit e0098e1

File tree

90 files changed

+150
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+150
-138
lines changed

meta/schemas.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"title",
2727
"description",
2828
"examples",
29-
"$comment",
29+
"x-links",
3030
"$schema"
3131
],
3232
"properties": {
@@ -35,10 +35,20 @@
3535
},
3636
"$id": false,
3737
"$comment": {
38-
"$ref": "../schemas/ietf/http/https-url.json"
38+
"not": {
39+
"$ref": "../schemas/ietf/uri/uri-reference.json"
40+
}
3941
},
4042
"x-license": {
4143
"const": "https://github.com/sourcemeta/std/blob/main/LICENSE"
44+
},
45+
"x-links": {
46+
"type": "array",
47+
"minItems": 1,
48+
"uniqueItems": true,
49+
"items": {
50+
"$ref": "../schemas/ietf/http/https-url.json"
51+
}
4252
}
4353
}
4454
}

schemas/ieee/posix/path-absolute.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "IEEE Std 1003.1-2017 POSIX File Path (Absolute)",
44
"description": "IEEE Std 1003.1-2017 POSIX absolute pathname",
5-
"$comment": "https://pubs.opengroup.org/onlinepubs/9699919799/",
65
"examples": [
76
"/",
87
"/home/user/document.txt",
@@ -11,6 +10,7 @@
1110
"/tmp/temp_file-123.tmp"
1211
],
1312
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
13+
"x-links": [ "https://pubs.opengroup.org/onlinepubs/9699919799/" ],
1414
"type": "string",
1515
"not": {
1616
"$comment": "Cannot contain null bytes",

schemas/ieee/posix/path-relative.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "IEEE Std 1003.1-2017 POSIX File Path (Relative)",
44
"description": "IEEE Std 1003.1-2017 POSIX relative pathname",
5-
"$comment": "https://pubs.opengroup.org/onlinepubs/9699919799/",
65
"examples": [
76
"",
87
"file.txt",
@@ -11,6 +10,7 @@
1110
".ssh/id_rsa"
1211
],
1312
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
13+
"x-links": [ "https://pubs.opengroup.org/onlinepubs/9699919799/" ],
1414
"type": "string",
1515
"not": {
1616
"anyOf": [

schemas/ieee/posix/path.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "IEEE Std 1003.1-2017 POSIX File Path)",
44
"description": "IEEE Std 1003.1-2017 POSIX pathname",
5-
"$comment": "https://pubs.opengroup.org/onlinepubs/9699919799/",
65
"examples": [
76
"/",
87
"/home/user/document.txt",
@@ -12,6 +11,7 @@
1211
"../config/settings.conf"
1312
],
1413
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
14+
"x-links": [ "https://pubs.opengroup.org/onlinepubs/9699919799/" ],
1515
"anyOf": [
1616
{
1717
"$ref": "./path-absolute.json"

schemas/ietf/email/address.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "RFC 5322 Email Address (Addr-Spec)",
44
"description": "A specific Internet identifier that represents an e-mail box to which messages are delivered",
5-
"$comment": "https://www.rfc-editor.org/rfc/rfc5322#section-3.4.1",
65
"examples": [
76
87
"\"[email protected]\"@example.com",
@@ -12,6 +11,7 @@
1211
"user@[abc.def]"
1312
],
1413
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
14+
"x-links": [ "https://www.rfc-editor.org/rfc/rfc5322#section-3.4.1" ],
1515
"type": "string",
1616
"anyOf": [
1717
{

schemas/ietf/http/etag-strong.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "RFC 9110 HTTP Strong ETag",
44
"description": "A strong HTTP entity tag used for cache validation",
5-
"$comment": "https://www.rfc-editor.org/rfc/rfc9110#section-8.8.3",
65
"examples": [ "\"abc123\"", "\"686897696a7c876b7e\"", "\"\"" ],
76
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.rfc-editor.org/rfc/rfc9110#section-8.8.3" ],
88
"type": "string",
99
"pattern": "^\"[\\x21\\x23-\\x7E\\x80-\\xFF]*\"$"
1010
}

schemas/ietf/http/etag-weak.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "RFC 9110 HTTP Weak ETag",
44
"description": "A weak HTTP entity tag used for cache validation with relaxed comparison semantics",
5-
"$comment": "https://www.rfc-editor.org/rfc/rfc9110#section-8.8.3",
65
"examples": [ "W/\"abc123\"", "W/\"686897696a7c876b7e\"", "W/\"\"" ],
76
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.rfc-editor.org/rfc/rfc9110#section-8.8.3" ],
88
"type": "string",
99
"pattern": "^W/\"[\\x21\\x23-\\x7E\\x80-\\xFF]*\"$"
1010
}

schemas/ietf/http/etag.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "RFC 9110 HTTP ETag",
44
"description": "An HTTP entity tag used for cache validation, either strong or weak",
5-
"$comment": "https://www.rfc-editor.org/rfc/rfc9110#section-8.8.3",
65
"examples": [ "\"abc123\"", "W/\"abc123\"", "\"\"" ],
76
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.rfc-editor.org/rfc/rfc9110#section-8.8.3" ],
88
"anyOf": [
99
{
1010
"$ref": "./etag-strong.json"

schemas/ietf/http/http-url.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "HTTP URL",
44
"description": "A Uniform Resource Locator using the HTTP scheme",
5-
"$comment": "https://www.rfc-editor.org/rfc/rfc9110#section-4.2.1",
65
"examples": [
76
"http://example.com",
87
"http://example.com/path",
98
"http://user:[email protected]:8080/api"
109
],
1110
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
11+
"x-links": [ "https://www.rfc-editor.org/rfc/rfc9110#section-4.2.1" ],
1212
"$ref": "../uri/url.json",
1313
"pattern": "^[Hh][Tt][Tt][Pp]://"
1414
}

schemas/ietf/http/https-url.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "HTTPS URL",
44
"description": "A Uniform Resource Locator using the HTTPS scheme",
5-
"$comment": "https://www.rfc-editor.org/rfc/rfc9110#section-4.2.2",
65
"examples": [
76
"https://example.com",
87
"https://example.com/path",
98
"https://user:[email protected]:443/api"
109
],
1110
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
11+
"x-links": [ "https://www.rfc-editor.org/rfc/rfc9110#section-4.2.2" ],
1212
"$ref": "../uri/url.json",
1313
"pattern": "^[Hh][Tt][Tt][Pp][Ss]://"
1414
}

0 commit comments

Comments
 (0)