-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
refactor: remove dependency on gin #800
Conversation
Codecov Report
@@ Coverage Diff @@
## master #800 +/- ##
==========================================
+ Coverage 83.82% 84.88% +1.06%
==========================================
Files 8 8
Lines 1663 1654 -9
==========================================
+ Hits 1394 1404 +10
+ Misses 159 145 -14
+ Partials 110 105 -5
Continue to review full report at Codecov.
|
bc69b26
to
343aeea
Compare
@akojo could you help rebase master and fix conflicts? |
343aeea
to
ed86507
Compare
Ah, again master ran away 😃 . Rebased. |
Is this PR still working? I'm using echo-swagger, I'm having trouble with swaggo/gin-swagger#128 because swag depends on gin-swagger. |
Is there something I could help with to get this moving? |
@akojo in order to review your PR we need to see CI tests passing. |
11d0ec7
to
cae0df4
Compare
Hmm, any idea why go1.13 tests fail? Running that specific test doesn't work on my fork since the paths don't match |
cae0df4
to
2b234b3
Compare
Heh, silly me. Didn't realize that my changes to |
2b234b3
to
46d26b6
Compare
For some reason, the coverage decreased by 0.25 and the checks are failing. |
🤔 Looks like updating github.com/go-openapi/spec to v0.19.14 breaks the build by changing the formatting of output slightly |
See #835 |
23002ef
to
0573df1
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
That -0.13% coverage decrease seems to be bogus since parser test should never hit the line in question in the first place. Only duplicate |
Since tests only test parsing of go source and swaggo special comments, an advanced router is not really necessary
Since testdata/nested doesn't point to outside packages anymore, this caused nested parsing test to skip exercising one if-branch. Add more nesting to nested2 to regain that.
0573df1
to
e662cc6
Compare
Remove duplication in code that checks for duplicate operation ids
Also exercise rest of HTTP methods when testing for duplicate @id detection
748de64
to
0301453
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
Describe the PR
Since swag doesn't have a direct dependency on gin-gonic/gin, drop it as a dependency in the main module:
http
package for handlers instead of gin in testshttp
inexample/basic
since tests depend on inRelation issue
#796