-
Notifications
You must be signed in to change notification settings - Fork 214
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
[Question] Why is uint32 mapped to {"integer", "int64", 0.} #513
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
so this existed pretty much since the inception of the repo, my understanding is that a max size uint32 would not fit in an int32 because of the extra bit required and we go to the next size of 64. You could use a signed int32? |
Description
uint32
is currently mapped to OpenAPI numericinteger
type which seems OK, but with a format ofint64
.Is there any reason for this? or is it a typo?
The mapping is located here:
kube-openapi/pkg/common/common.go
Line 187 in 67ed584
This is problematic because at the moment, for example, fields representing server ports are typed as
int64
which map them to misleading types such asLong
in Java.The text was updated successfully, but these errors were encountered: