-
Notifications
You must be signed in to change notification settings - Fork 241
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
Problem: didn't disable the url query parameter in swagger ui #345
Conversation
Solution: - update to recent swagger ui version - add option `queryConfigEnabled: false`.
Codecov Report
@@ Coverage Diff @@
## main #345 +/- ##
===========================================
+ Coverage 21.51% 41.06% +19.54%
===========================================
Files 27 30 +3
Lines 1729 1505 -224
===========================================
+ Hits 372 618 +246
+ Misses 1324 841 -483
- Partials 33 46 +13
|
@@ -855,7 +855,7 @@ func (app *App) RegisterTendermintService(clientCtx client.Context) { | |||
|
|||
// RegisterSwaggerAPI registers swagger route with API Server | |||
func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router) { | |||
statikFS, err := fs.New() | |||
statikFS, err := fs.NewWithNamespace("cronos") |
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.
used a different namespace to prevent potential conflict with the one used by cosmos-sdk's simd.
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.
maybe add entry in changelog
added now. |
crypto-org-chain#345) Solution: - update to recent swagger ui version - add option `queryConfigEnabled: false`.
Solution:
queryConfigEnabled: false
.👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)