-
Notifications
You must be signed in to change notification settings - Fork 353
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: Swagger UI does not include NFT APIs #533
Conversation
Codecov Report
@@ Coverage Diff @@
## master #533 +/- ##
==========================================
+ Coverage 11.15% 16.24% +5.09%
==========================================
Files 36 69 +33
Lines 4804 9127 +4323
==========================================
+ Hits 536 1483 +947
- Misses 4182 7208 +3026
- Partials 86 436 +350
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
@yihuang one thing I remember I think @cdc-Hitesh mentioned was that Swagger examples used a wrong bech32 address hrp -- can this be fixed too?
@@ -0,0 +1,3 @@ | |||
package statik | |||
|
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.
lol statik.go file has 1.6MB
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.
yeah, it embed the whole app/docs/swagger-ui
directory.
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
there are many |
There's no problem with the protobuf types etc. -- but for examples payloads... if one tries to use the example payload, it'll fail with an error that the address validation failed. Maybe can open an issue for that |
done, seems manageable. |
fixes crypto-org-chain#531 Solution: - vendor in swagger script and update the assets - port protobuf tools from cosmos-sdk - update swagger title Co-authored-by: Calvin Lau <38898718+calvinaco@users.noreply.github.com>
fixes #531
Solution:
How to use
make proto-swagger-gen
update swagger filesmake update-swagger-docs
update statik embed swagger assetsmake proto-all
format/lint protobuf files and gen golang code👮🏻👮🏻👮🏻 !!!! 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! :)