Skip to content
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

Unsigned Integers #2617

Closed
hampgoodwin opened this issue Jun 10, 2021 · 1 comment
Closed

Unsigned Integers #2617

hampgoodwin opened this issue Jun 10, 2021 · 1 comment

Comments

@hampgoodwin
Copy link

hampgoodwin commented Jun 10, 2021

We would like to provide the type of integer with additional format types of uint8, uint16, uint32, and uint64.

@MikeRalphson
Copy link
Member

As per the JSON Schema spec format is an open-ended keyword, so you can define your own values.

In this issue #845 (comment) we have discussed creating a format registry either for the OAS or across multiple specs which use JSON Schema.

We're very interested in feedback on what format (!) that registry should take and how people would want to use it.

uint64 would have some interoperability issues with some languages (e.g. Javascript) which map JSON numbers to an internal format which can only support up to 53 bits of integer precision (signed), so some people use type: string in these cases.

Please feel free to continue the discussion on #845

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants