-
Notifications
You must be signed in to change notification settings - Fork 205
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
handler: convert int types correctly like yaml2 does and gnostic expects #149
handler: convert int types correctly like yaml2 does and gnostic expects #149
Conversation
cc73358
to
1d6fc57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Because it is slow. The one here avoids going through Though I wouldn't mind moving this one over to the other repo. Wdyt? |
is it limited to an interface problem or an implementation? I'm asking because I wonder if we can improve the situation in general as opposed to just in this repo. |
@apelisse I have created kubernetes-sigs/yaml#14. Can we please merge this first to fix this critical bug? I will create a follow-up with revendoering sig.k8s.io/yaml as soon as the upper PR merged. |
@mbohlool is this approved? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Too late, but yes :-) |
And really appreciate that you opened that PR! |
Json always unmarshals to float64, yaml2 does best effort down-sizing of the returned numbers, returning int, int64, uint64 or float64. Gnostic expects the later.