-
Notifications
You must be signed in to change notification settings - Fork 81
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
fix: integer fields are displayed as floats when using create with o=yaml #651
Conversation
e0abef5
to
1d2f775
Compare
The json output for the create commands has already been released with 1.40.0, I think its a bit late to introduce a breaking change. Could we use a workaround to wrap the schema? Maybe using inline structs ? |
Yeah, I'll add that |
1d2f775
to
bf40c7c
Compare
bf40c7c
to
9b21c3f
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #651 +/- ##
==========================================
+ Coverage 45.94% 45.98% +0.03%
==========================================
Files 171 171
Lines 7517 7514 -3
==========================================
+ Hits 3454 3455 +1
+ Misses 3623 3616 -7
- Partials 440 443 +3 ☔ View full report in Codecov by Sentry. |
191764c
to
52a9b08
Compare
🚀 |
🤖 I have created a release *beep* *boop* --- ## [1.41.1](v1.41.0...v1.41.1) (2023-12-21) ### Bug Fixes * allow multiple --type flags for metrics commands ([#649](#649)) ([69346f7](69346f7)), closes [#642](#642) * integer fields are displayed as floats when using create with o=yaml ([#651](#651)) ([2d42fcd](2d42fcd)) * integer fields are displayed as floats when using describe with -o=yaml ([#650](#650)) ([ee4c51e](ee4c51e)), closes [#638](#638) * wording when metrics are not yet available ([#639](#639)) ([9298c46](9298c46)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Continuation #650, closes #638
When outputting a resource after creation, it is first converted into a schema struct. This fixes bugs like #638 and also makes all schema outputs (describe, list, create) consistent.