-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 Swagger JSON autogeneration issues. #4845
Fix Swagger JSON autogeneration issues. #4845
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4845 +/- ##
==========================================
+ Coverage 37.4% 37.43% +0.03%
==========================================
Files 308 308
Lines 45612 45711 +99
==========================================
+ Hits 17060 17113 +53
- Misses 26095 26138 +43
- Partials 2457 2460 +3
Continue to review full report at Codecov.
|
f617ff1
to
f5f2cbe
Compare
I remember the opposite problem with go version of swagger but since CI doesn't seems to complain. LGTM |
bdf7f2c
to
0ffd663
Compare
0ffd663
to
5bf3306
Compare
273541b
to
b76928a
Compare
Remove unnecessary schema references for the forbidden and empty responses Signed-off-by: Andrew Thornton <art27@cantab.net>
My fixes for the CreateAccessToken are only partial see #5126. It's not obvious where the setting for AccessToken going in to the header is set. |
b76928a
to
ad17f7d
Compare
Most of the swagger api descriptions incorrectly use the integer type when the underlying go code actually uses int64. I've added further changes to account for this. |
I've also noted that the swagger description of GET /repos/{owner}/{repo}/pulls was also inadequate |
fb9d4cf
to
c232452
Compare
c232452
to
aefbac0
Compare
Set int64 format for those which are int64 Some more form fixes
aefbac0
to
d7e86e6
Compare
@lunny need your approval |
When autogenerating a swager client from the current swagger.v1.json, at least in Java, there is an issue whereby the use of schema references for the forbidden and empty responses leads to a broken client being created due to swagger believing that these represent an unspecified object. This pull requests removes these unnecessary schema references for the API references where a description for the empty/forbidden responses is provided.