-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Annotate some swagger documented types as int64 #43629
Conversation
Looks like I forgot to update the |
Thanks! Hmm.. validate is failing 🤔 ;
Ah! I think that's because that bit is related to the Go types; moby/api/types/image_summary.go Line 64 in 235f862
and Line 51 in 235f862
So those will have to be updated as well 😅 |
Whoops; I had the tab open with my comment in draft, and didn't see your post 😂 |
@thaJeztah thanks for pointing me to the second occurrence at Line 51 in 235f862
|
Using the swagger.yaml to generate api models will create incompatible field types. Some inconsistencies had already been mentioned at moby#39131. I've added more fixes from real life experience, some only occurring on Windows. Closes moby#39131 Signed-off-by: Tobias Gesellchen <tobias@gesellix.de>
Wow... "Upstream fix" somewhere far away closed this pull request. TIL. |
The failing test case doesn't seem to be related to my changes 🤔
|
Ah, yes, those can be fun; even more so if the
Probably some flakiness; let me kick CI again |
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
This one also doesn't seem to be related:
If I can do anything to make it work, please leave a note here :) |
Looks like that test was flaky before; #11966 (and I saw a couple of other mentions). Should not be related, but let me kick it once more just to see if we can make it nice and green 😅 |
Codecov Report
@@ Coverage Diff @@
## master #43629 +/- ##
==========================================
- Coverage 36.18% 31.04% -5.14%
==========================================
Files 610 643 +33
Lines 45363 65896 +20533
==========================================
+ Hits 16413 20456 +4043
- Misses 26707 43539 +16832
+ Partials 2243 1901 -342 |
Using the swagger.yaml to generate api models will create incompatible field types. Some inconsistencies had already been mentioned at #39131. I've added more fixes from real life experience, some only occurring on Windows.
Closes #39131
Signed-off-by: Tobias Gesellchen tobias@gesellix.de
- What I did
The following types documented in api/swagger.yaml and docs/api/v1.41.yaml have been adjusted to match the types in the Golang model:
- How I did it
Changed the swagger.yaml and v1.41.yaml, compared with moby's Golang types (didn't check any older api versions).
- How to verify it
See the list above, with each entry linking to the Golang source for easier comparison.
- Description for the changelog
Annotate some Swagger documented types as int64, matching the Golang types.
- A picture of a cute animal (not mandatory but encouraged)