Skip to content

Commit 7592eb8

Browse files
baywetralfhandldarrelmillerMikeRalphson
authored
adds missing formats in the registry (#3167)
* - typo fix * - adds UUID format * - adds URI format * - moves source links to YAML header so it can be in the table as well * - adds URI template, IRI, IRI reference and URI reference * - adds time and duration formats * - adds email and idn email formats * - adds ipv4, v6, hostname and idn hostname formats * - adds json and relative json pointers * - adds regex * - adds base64 url format * - adds decimal format * - adds char format * - typo fix * - switches base type for decimal to number * - removes link to master issue Signed-off-by: Vincent Biret <[email protected]> * - adds recommendation for binary format in 3.1 Signed-off-by: Vincent Biret <[email protected]> * Update registries/_format/date.md Co-authored-by: Ralf Handl <[email protected]> * - fixes link to duration spec Co-authored-by: Ralf Handl <[email protected]> * - fixes email RFC number Co-authored-by: Ralf Handl <[email protected]> * - adds email rfc link Co-authored-by: Ralf Handl <[email protected]> * - adds IDN hostname RFC link Co-authored-by: Ralf Handl <[email protected]> * - adds idn email RFC link Co-authored-by: Ralf Handl <[email protected]> * - adds base type, version and remarks to format table Signed-off-by: Vincent Biret <[email protected]> * - adds version and remarks for binary format Signed-off-by: Vincent Biret <[email protected]> * - adds support for floating points in decimal * Apply suggestions from code review Co-authored-by: Ralf Handl <[email protected]> * - adds int16 to the format list Signed-off-by: Vincent Biret <[email protected]> * - adds link to the base64 url RFC Co-authored-by: Ralf Handl <[email protected]> * - adds remark for base64url format * - adds link to the base64 url RFC * - fixes link to source Signed-off-by: Vincent Biret <[email protected]> * - adds details about base64, base64url and byte formats Signed-off-by: Vincent Biret <[email protected]> * - typo fix Signed-off-by: Vincent Biret <[email protected]> * - adds links to base64 RFC Signed-off-by: Vincent Biret <[email protected]> * - first batch of review suggestions Co-authored-by: Ralf Handl <[email protected]> * - second batch of PR feedback Co-authored-by: Darrel <[email protected]> * - third batch of PR review suggestions Signed-off-by: Vincent Biret <[email protected]> * - moves and renames version column for formats Signed-off-by: Vincent Biret <[email protected]> * - adds password format Signed-off-by: Vincent Biret <[email protected]> * - adds a source label for formats Signed-off-by: Vincent Biret <[email protected]> * - removes examples from registry entries Signed-off-by: Vincent Biret <[email protected]> * - removes remarks column in formats Signed-off-by: Vincent Biret <[email protected]> * - renames oas version to deprecated version Signed-off-by: Vincent Biret <[email protected]> * Update registry/format.md Co-authored-by: Darrel <[email protected]> * - changes the deprecation to a true/false in the table Signed-off-by: Vincent Biret <[email protected]> * - removes the deprecation notice from detail pages Signed-off-by: Vincent Biret <[email protected]> * - renames deprecated version to note as PR feedback Signed-off-by: Vincent Biret <[email protected]> * - moves base64url, int16 and char to separate PRs * Apply suggestions from code review Co-authored-by: Darrel <[email protected]> * - moves decimal to a separate PR * - adds OAS source for relevant formats Signed-off-by: Vincent Biret <[email protected]> * Update registries/_format/idn-email.md Co-authored-by: Mike Ralphson <[email protected]> --------- Signed-off-by: Vincent Biret <[email protected]> Co-authored-by: Ralf Handl <[email protected]> Co-authored-by: Darrel <[email protected]> Co-authored-by: Mike Ralphson <[email protected]>
1 parent 6c3caaa commit 7592eb8

31 files changed

+633
-14
lines changed

registries/_format/binary.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ issue:
44
description: any sequence of octets
55
base_type: string
66
layout: default
7+
deprecated_note: '3.1'
8+
remarks: "In OpenAPI 3.1, instead set the media type appropriately and do not use a schema property. Note that only complete HTTP message bodies or complete parts in a multipart media type can accommodate binary data. JSON strings and URL path components cannot."
9+
source: https://spec.openapis.org/oas/v3.0.3.html#data-types
10+
source_label: OAS
711
---
812

913
# <a href="..">{{ page.collection }}</a>
@@ -12,10 +16,16 @@ layout: default
1216

1317
Base type: `{{ page.base_type }}`.
1418

15-
The `{{page.slug}}` format represents any sequece of octets. This format entry is to ensure future versions of OpenAPI maintain compatibility with [OpenAPI 3.0.x](https://spec.openapis.org/oas/v3.0.0).
19+
The `{{page.slug}}` format represents any sequence of octets. This format entry is to ensure future versions of OpenAPI maintain compatibility with [OpenAPI 3.0.x](https://spec.openapis.org/oas/v3.0.0).
1620

1721
{% if page.issue %}
1822
### GitHub Issue
1923

2024
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2125
{% endif %}
26+
27+
{% if page.remarks %}
28+
### Remarks
29+
30+
{{ page.remarks }}
31+
{% endif %}

registries/_format/byte.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
owner: DarrelMiller
33
issue:
4-
description: base64 encoded characters
4+
description: base64 encoded data as defined in [RFC4648](https://www.rfc-editor.org/rfc/rfc4648#section-4)
55
base_type: string
66
layout: default
7+
deprecated_note: '3.1'
8+
remarks: "In OpenAPI 3.1, instead use [`contentEncoding: base64`](https://json-schema.org/draft/2020-12/json-schema-validation.html#name-contentencoding), optionally alongside [contentMediaType](https://json-schema.org/draft/2020-12/json-schema-validation.html#name-contentmediatype)."
9+
source: https://spec.openapis.org/oas/v3.0.3.html#data-types
10+
source_label: OAS
711
---
812

913
# <a href="..">{{ page.collection }}</a>
@@ -12,10 +16,16 @@ layout: default
1216

1317
Base type: `{{ page.base_type }}`.
1418

15-
The `{{page.slug}}` format represents any sequece of octets encoded as a base64 string. This format entry is to ensure future versions of OpenAPI maintain compatibility with [OpenAPI 3.0.x](https://spec.openapis.org/oas/v3.0.0).
19+
The `{{page.slug}}` format represents any sequence of octets encoded as a base64 string as defined in [RFC4648](https://www.rfc-editor.org/rfc/rfc4648#section-4). This format entry is to ensure future versions of OpenAPI maintain compatibility with [OpenAPI 3.0.x](https://spec.openapis.org/oas/v3.0.0).
1620

1721
{% if page.issue %}
1822
### GitHub Issue
1923

2024
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2125
{% endif %}
26+
27+
{% if page.remarks %}
28+
### Remarks
29+
30+
{{ page.remarks }}
31+
{% endif %}

registries/_format/commonmark.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ description: commonmark-formatted text
44
base_type: string
55
issue:
66
layout: default
7+
source: https://spec.openapis.org/oas/latest.html#data-types
8+
source_label: OAS
79
---
810

911
# <a href="..">{{ page.collection }}</a>
@@ -19,3 +21,9 @@ The `{{page.slug}}` format represents [CommonMark](https://commonmark.org/) form
1921

2022
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2123
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/date-time.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
owner: DarrelMiller
33
issue:
4-
description: date and time as defined by date-time - RFC3339
4+
description: date and time as defined by date-time - [RFC3339](https://www.rfc-editor.org/rfc/rfc3339#section-5.6)
55
base_type: string
66
layout: default
7+
source_label: JSON Schema
8+
source: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-dates-times-and-duration
79
---
810

911
# <a href="..">{{ page.collection }}</a>
@@ -12,10 +14,16 @@ layout: default
1214

1315
Base type: `{{ page.base_type }}`.
1416

15-
The `{{page.slug}}` format represents a date and time as defined by date-time - [RFC3339](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339#anchor14one). This format entry is to ensure future versions of OpenAPI maintain compatibility with [OpenAPI 3.0.x](https://spec.openapis.org/oas/v3.0.0).
17+
The `{{page.slug}}` format represents a date and time as defined by date-time - [RFC3339](https://www.rfc-editor.org/rfc/rfc3339#section-5.6). This format entry is to ensure future versions of OpenAPI maintain compatibility with [OpenAPI 3.0.x](https://spec.openapis.org/oas/v3.0.0).
1618

1719
{% if page.issue %}
1820
### GitHub Issue
1921

2022
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2123
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/date.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
owner: DarrelMiller
33
issue:
4-
description: date as defined by full-date - RFC3339
4+
description: date as defined by full-date - [RFC3339](https://www.rfc-editor.org/rfc/rfc3339#section-5.6)
55
base_type: string
66
layout: default
7+
source_label: JSON Schema
8+
source: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-dates-times-and-duration
79
---
810

911
# <a href="..">{{ page.collection }}</a>
@@ -12,10 +14,16 @@ layout: default
1214

1315
Base type: `{{ page.base_type }}`.
1416

15-
The `{{page.slug}}` format represents a date as defined by full-date - [RFC3339](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339#anchor14one). This format entry is to ensure future versions of OpenAPI maintain compatibility with [OpenAPI 3.0.x](https://spec.openapis.org/oas/v3.0.0).
17+
The `{{page.slug}}` format represents a date as defined by full-date - [RFC3339](https://www.rfc-editor.org/rfc/rfc3339#section-5.6). This format entry is to ensure future versions of OpenAPI maintain compatibility with [OpenAPI 3.0.x](https://spec.openapis.org/oas/v3.0.0).
1618

1719
{% if page.issue %}
1820
### GitHub Issue
1921

2022
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2123
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/double.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ issue:
44
description: double precision floating point number
55
base_type: number
66
layout: default
7+
source: https://spec.openapis.org/oas/latest.html#data-types
8+
source_label: OAS
79
---
810

911
# <a href="..">{{ page.collection }}</a>
@@ -19,3 +21,9 @@ The `{{page.slug}}` format represents a double precision (64bit) floating point
1921

2022
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2123
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/duration.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
owner: baywet
3+
issue:
4+
description: duration as defined by duration - RFC3339
5+
base_type: string
6+
layout: default
7+
source_label: JSON Schema
8+
source: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-dates-times-and-duration
9+
---
10+
11+
# <a href="..">{{ page.collection }}</a>
12+
13+
## {{ page.slug }} - {{ page.description }}
14+
15+
Base type: `{{ page.base_type }}`.
16+
17+
The `{{page.slug}}` format represents a duration as defined by duration - [RFC3339](https://www.rfc-editor.org/rfc/rfc3339.html#appendix-A).
18+
19+
{% if page.issue %}
20+
### GitHub Issue
21+
22+
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
23+
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/email.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
owner: baywet
3+
issue:
4+
description: An email address as defined as Mailbox in RFC5321
5+
base_type: string
6+
layout: default
7+
source_label: JSON Schema
8+
source: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-email-addresses
9+
---
10+
11+
# <a href="..">{{ page.collection }}</a>
12+
13+
## {{ page.slug }} - {{ page.description }}
14+
15+
Base type: `{{ page.base_type }}`.
16+
17+
The `{{page.slug}}` format is an email address as defined as Mailbox in [RFC5321](https://www.rfc-editor.org/rfc/rfc5321).
18+
19+
{% if page.issue %}
20+
### GitHub Issue
21+
22+
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
23+
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/float.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ issue:
44
description: single precision floating point number
55
base_type: number
66
layout: default
7+
source: https://spec.openapis.org/oas/latest.html#data-types
8+
source_label: OAS
79
---
810

911
# <a href="..">{{ page.collection }}</a>
@@ -19,3 +21,9 @@ The `{{page.slug}}` format represents a single precision (32bit) floating point
1921

2022
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2123
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/hostname.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
owner: baywet
3+
issue:
4+
description: A host name as defined by RFC1123
5+
base_type: string
6+
layout: default
7+
source_label: JSON Schema
8+
source: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-hostnames
9+
---
10+
11+
# <a href="..">{{ page.collection }}</a>
12+
13+
## {{ page.slug }} - {{ page.description }}
14+
15+
Base type: `{{ page.base_type }}`.
16+
17+
The `{{page.slug}}` format is a host name as defined by [RFC1123](https://www.rfc-editor.org/info/rfc1123).
18+
19+
{% if page.issue %}
20+
### GitHub Issue
21+
22+
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
23+
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/html.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ description: HTML-formatted text
44
base_type: string
55
issue:
66
layout: default
7+
source: https://spec.openapis.org/oas/latest.html#data-types
8+
source_label: OAS
79
---
810

911
# <a href="..">{{ page.collection }}</a>
@@ -19,3 +21,9 @@ The `{{page.slug}}` format represents HTML-formatted text.
1921

2022
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2123
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/idn-email.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
owner: baywet
3+
issue:
4+
description: An email address as defined as Mailbox in RFC6531
5+
base_type: string
6+
layout: default
7+
source_label: JSON Schema
8+
source: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-email-addresses
9+
---
10+
11+
# <a href="..">{{ page.collection }}</a>
12+
13+
## {{ page.slug }} - {{ page.description }}
14+
15+
Base type: `{{ page.base_type }}`.
16+
17+
The `{{page.slug}}` format is an email address as defined as Mailbox in [RFC6531](https://www.rfc-editor.org/rfc/rfc6531).
18+
19+
{% if page.issue %}
20+
### GitHub Issue
21+
22+
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
23+
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/idn-hostname.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
owner: baywet
3+
issue:
4+
description: An internationalized host name as defined by RFC5890
5+
base_type: string
6+
layout: default
7+
source_label: JSON Schema
8+
source: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-hostnames
9+
---
10+
11+
# <a href="..">{{ page.collection }}</a>
12+
13+
## {{ page.slug }} - {{ page.description }}
14+
15+
Base type: `{{ page.base_type }}`.
16+
17+
The `{{page.slug}}` format is an internationalized host name as defined by [RFC5890](https://www.rfc-editor.org/rfc/rfc5890.html).
18+
19+
{% if page.issue %}
20+
### GitHub Issue
21+
22+
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
23+
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/int32.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ issue:
44
description: signed 32-bit integer
55
base_type: number
66
layout: default
7+
source: https://spec.openapis.org/oas/latest.html#data-types
8+
source_label: OAS
79
---
810

911
# <a href="..">{{ page.collection }}</a>
@@ -19,3 +21,9 @@ The `{{page.slug}}` format represents a signed 32-bit integer, with the range
1921

2022
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2123
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

registries/_format/int64.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ issue:
44
description: signed 64-bit integer
55
base_type: number
66
layout: default
7+
source: https://spec.openapis.org/oas/latest.html#data-types
8+
source_label: OAS
79
---
810

911
# <a href="..">{{ page.collection }}</a>
@@ -19,3 +21,9 @@ The `{{page.slug}}` format represents a signed 64-bit integer, with the range -9
1921

2022
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
2123
{% endif %}
24+
25+
{% if page.remarks %}
26+
### Remarks
27+
28+
{{ page.remarks }}
29+
{% endif %}

0 commit comments

Comments
 (0)