Skip to content

feat: adds uint16, 32 and 64 formats #4585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions registries/_format/uint16.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
owner: baywet
issue: 4564
description: unsigned 16-bit integer
base_type: number
layout: default
source: https://spec.openapis.org/oas/latest.html#data-types
source_label: OAS
---

{% capture summary %}
The `{{page.slug}}` format represents an unsigned 16-bit integer, with the range 0 to 65535.
{% endcapture %}

{% include format-entry.md summary=summary %}
15 changes: 15 additions & 0 deletions registries/_format/uint32.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
owner: baywet
issue: 4564
description: unsigned 32-bit integer
base_type: number
layout: default
source: https://spec.openapis.org/oas/latest.html#data-types
source_label: OAS
---

{% capture summary %}
The `{{page.slug}}` format represents an unsigned 32-bit integer, with the range 0 to 4294967295.
{% endcapture %}

{% include format-entry.md summary=summary %}
17 changes: 17 additions & 0 deletions registries/_format/uint64.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
owner: baywet
issue: 4564
description: unsigned 64-bit integer
base_type: [number, string]
layout: default
source: https://spec.openapis.org/oas/latest.html#data-types
source_label: OAS
---

{% capture summary %}
The `{{page.slug}}` format represents an unsigned 64-bit integer, with the range 0 to 18446744073709551615.

Representation as a JSON string is recommended for values outside the 53-bit range (0 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.
{% endcapture %}

{% include format-entry.md summary=summary %}