Skip to content

Commit

Permalink
Update int64.md (OAI#3232)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl authored Apr 13, 2023
1 parent cacc239 commit f8f3d25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions registries/_format/int64.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
owner: DarrelMiller
issue:
description: signed 64-bit integer
base_type: number
base_type: number, string
layout: default
source: https://spec.openapis.org/oas/latest.html#data-types
source_label: OAS
Expand All @@ -16,6 +16,8 @@ Base type: `{{ page.base_type }}`.

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).

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.

{% if page.issue %}
### GitHub Issue

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

{{ page.remarks }}
{% endif %}
{% endif %}

0 comments on commit f8f3d25

Please sign in to comment.