Skip to content

Commit 1b22948

Browse files
authored
Merge pull request #4015 from baywet/bugfix/integer-registry
removes the use of integer type from registries format
2 parents 71935eb + baa81d0 commit 1b22948

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

_includes/format-entry.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## {{ page.slug }} - {{ page.description }}
44

5-
Base type: `{{ page.base_type | join:', ' }}`.
5+
JSON Data Type: `{{ page.base_type | join:', ' }}`.
66

77
{{ include.summary }}
88

registries/_format/double-int.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
owner: mikekistler
33
issue:
44
description: an integer that can be stored in an IEEE 754 double-precision number without loss of precision
5-
base_type: integer
5+
base_type: number
66
layout: default
77
---
88

registries/_format/sf-integer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ issue:
44
description: structured fields integer as defined in [RFC8941]
55
source: https://www.rfc-editor.org/rfc/rfc8941#name-integers
66
source_label: RFC 8941
7-
base_type: [integer, number]
7+
base_type: number
88
layout: default
99
---
1010

registry/format.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ If tools choose to implement any format present in this registry, they SHOULD im
1515

1616
The registry SHOULD NOT contain two entries that have the same meaning, unless all but one have been deprecated.
1717

18-
1918
## Contributing
2019

2120
Please raise a [Pull-Request](https://github.com/OAI/OpenAPI-Specification/pulls) or [Issue](https://github.com/OAI/OpenAPI-Specification/issues) to contribute or discuss a registry value.
2221

2322
## Values
2423

25-
|Value|Description|Type|Source|Deprecated|
24+
For the purpose of [JSON Schema validation](https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#section-7.1), each format should specify the set of JSON data types for which it applies. In this registry, these types are shown in the "JSON data type" column.
25+
26+
|Value|Description|JSON Data Type|Source|Deprecated|
2627
|---|---|----|---|---|----|
2728
{% for value in site.format %}| <a href="./{{ value.slug }}.html">{{ value.slug }}</a> | {{ value.description }} | {{ value.base_type | join: ', ' }} | {% if value.source %}<a href="{{ value.source }}">{% if value.source_label %}{{value.source_label}}{% else %}Open{% endif %}</a>{% endif %} | {% if value.deprecated_note %}Yes{% else %}No{% endif %} |
2829
{% endfor %}

0 commit comments

Comments
 (0)