Skip to content

Commit f8f3d25

Browse files
authored
Update int64.md (OAI#3232)
1 parent cacc239 commit f8f3d25

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

registries/_format/int64.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
owner: DarrelMiller
33
issue:
44
description: signed 64-bit integer
5-
base_type: number
5+
base_type: number, string
66
layout: default
77
source: https://spec.openapis.org/oas/latest.html#data-types
88
source_label: OAS
@@ -16,6 +16,8 @@ Base type: `{{ page.base_type }}`.
1616

1717
The `{{page.slug}}` format represents a signed 64-bit integer, with the range -9223372036854775808 through 9223372036854775807. 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).
1818

19+
Representation as a JSON string is recommended for values outside the 53-bit range (-9007199254740991 through 9007199254740991) as this avoids problems with recipients that parse JSON numbers into [binary64](https://en.wikipedia.org/wiki/Double-precision_floating-point_format) memory representation.
20+
1921
{% if page.issue %}
2022
### GitHub Issue
2123

@@ -26,4 +28,4 @@ The `{{page.slug}}` format represents a signed 64-bit integer, with the range -9
2628
### Remarks
2729

2830
{{ page.remarks }}
29-
{% endif %}
31+
{% endif %}

0 commit comments

Comments
 (0)