diff --git a/registries/_format/uint16.md b/registries/_format/uint16.md new file mode 100644 index 0000000000..f65e0abe91 --- /dev/null +++ b/registries/_format/uint16.md @@ -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 %} diff --git a/registries/_format/uint32.md b/registries/_format/uint32.md new file mode 100644 index 0000000000..10e9ef2ad4 --- /dev/null +++ b/registries/_format/uint32.md @@ -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 %} diff --git a/registries/_format/uint64.md b/registries/_format/uint64.md new file mode 100644 index 0000000000..03c8d4ca0a --- /dev/null +++ b/registries/_format/uint64.md @@ -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 %}