-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Swagger: fix inconsistencies (try #2) #5231
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
Swagger: fix inconsistencies (try #2) #5231
Conversation
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago, mheon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
0b10644 to
d487076
Compare
|
Looks like that file doesn't have a |
|
Yep, just fixed & pushed that |
3105972 to
70cf0ba
Compare
|
LGTM |
|
Nice touch ups throughout @edsantiago |
|
/lgtm |
|
☔ The latest upstream changes (presumably #5093) made this pull request unmergeable. Please resolve the merge conflicts. |
70cf0ba to
407f4ff
Compare
407f4ff to
eca4233
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.
wait is a post -> https://docs.docker.com/engine/api/v1.40/#operation/ContainerWait
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.
This is a comment applying to /exists, not /wait ... can you re-check?
|
lgtm to except where noted. |
eca4233 to
a0e9d48
Compare
|
☔ The latest upstream changes (presumably #5158) made this pull request unmergeable. Please resolve the merge conflicts. |
a0e9d48 to
c1d782d
Compare
|
☔ The latest upstream changes (presumably #5235) made this pull request unmergeable. Please resolve the merge conflicts. |
As I've mentioned once or twice, hand-maintained swagger docs
are evil. This commit attempts to fix:
* Inconsistent methods (swagger says POST but code signature
says GET)
* Inconsistent capitalization
* Typos ("Mounter", "pood")
* Completely wrong paths (/inspect vs /json)
* Missing .Method() registrations
* Missing /libpod in some /volumes paths
* Incorrect method declaration: /libpod/containers/.../kill
was correct (POST) in swagger but wrong in the code itself
(http.MethodGet). Correct the latter to MethodPost
This is two hours' work, even with a script I have that
tries to cross-check everything.
Swagger docs should not be human-maintained.
Signed-off-by: Ed Santiago <santiago@redhat.com>
c1d782d to
2a411bc
Compare
|
Two conflicty rebases today so far; any chance of an LGTM for this? Tests are green. TIA. |
|
/lgtm |
|
/hold cancel |
As I've mentioned once or twice, hand-maintained swagger docs
are evil. This commit attempts to fix:
Inconsistent methods (swagger says POST but code signature
says GET)
Inconsistent capitalization
Typos ("Mounter", "pood")
Completely wrong paths (/inspect vs /json)
Missing .Method() registrations
Missing /libpod in some /volumes paths
This is two hours' work, even with a script I have that
tries to cross-check everything.
Swagger docs should not be human-maintained.
Signed-off-by: Ed Santiago santiago@redhat.com