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

integer primitives are being parsed as float64 #710

Closed
slessard opened this issue Dec 16, 2022 · 1 comment · Fixed by #711
Closed

integer primitives are being parsed as float64 #710

slessard opened this issue Dec 16, 2022 · 1 comment · Fixed by #711

Comments

@slessard
Copy link
Contributor

In the file req_resp_decoder.go it is obvious from the code on line 897 that the primitive being parsed is an integer and yet the code on line 898 calls strconv.ParseFloat

@slessard
Copy link
Contributor Author

It looks like this bug was introduced in the fix for #625

slessard pushed a commit to slessard/kin-openapi that referenced this issue Dec 16, 2022
parse integer primitives as int32 or int64, rather than float64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant