Skip to content

Format extension registry: unsigned integer types (uint16, uint32, uint64) #4564

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

Closed
micolous opened this issue May 6, 2025 · 6 comments
Closed
Labels
format-registry registries Related to any or all spec.openapis.org-hosted registries

Comments

@micolous
Copy link

micolous commented May 6, 2025

I’m proposing to add the following unsigned integer types:

value description JSON data type
uint16 unsigned 16-bit integer number
uint32 unsigned 32-bit integer number
uint64 unsigned 64-bit integer number, string (same caveats as int64)

The uint32 and uint64 formats are already in use by gnostic.

This is effectively a repeat of #2617, now that there is an extension registry, as it looks like only uint8 was added when that registry was created.

@handrews handrews added format-registry registries Related to any or all spec.openapis.org-hosted registries labels May 6, 2025
@handrews
Copy link
Member

handrews commented May 6, 2025

@micolous I honestly thought we had these- a PR would be welcome, just follow what was done for uint8. Or if you don't have time to do that, someone will get to this eventually (perhaps @baywet or @mikekistler)

@baywet
Copy link
Contributor

baywet commented May 12, 2025

@handrews If my memory serves me right, I initially had added it in my PRs, but we removed them during review because it was not part of the types requested by users on existing issues at the time.
Happy to take this on, or maybe @micolous wants to submit a pull request?

@micolous
Copy link
Author

Having a look at #3167, it looks like the way to add an extra format is with a PR targeting the gh-pages branch, rather than any of the other "main" v3.x branches, correct?

@baywet
Copy link
Contributor

baywet commented May 13, 2025

That's correct! Let me know if you have any additional comments or questions.

@baywet
Copy link
Contributor

baywet commented May 15, 2025

Added through #4585

@lornajane
Copy link
Contributor

Merged into the gh-pages branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format-registry registries Related to any or all spec.openapis.org-hosted registries
Projects
None yet
Development

No branches or pull requests

4 participants