-
Notifications
You must be signed in to change notification settings - Fork 3.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
[R4R]: add swagger-ui for gov, stake and slashing #2462
Merged
cwgoes
merged 28 commits into
cosmos:develop
from
HaoyangLiu:irisnet/swagger-ui-gov-stake
Oct 24, 2018
Merged
Changes from 22 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
126dc8a
Add swagger-ui for gov, stake and slashing
d8852d7
Add json consume
eadaf43
Add json to response header
1774658
Fix some bugs in stake APIs
da7dc49
Refactor swagger.ymal, remove definitions which are only referenced once
e529488
Remove duplicated json header
66eb6f9
Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into i…
4ba59c7
refactor query validator set response
6e1a4d1
Refactor swagger.yaml according code reviewer feedback
ba4eadd
Add response model
cde3db1
Merge with develop
4c08aed
Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into i…
e050d89
Fix lcd test failure: TestUnjail
9db8dc2
Add response mode and add error code for all query endpoints
5270da6
fix ci test failure
6ec2d88
Resolve some spell error, add missing gov endpoint and modify swagger…
9136254
Fix wrong response body
131e0ca
Resolve inconsistence between swagger.yaml and code implementation
2f09cd7
Merge with develop
eb7d3df
Update swagger.yaml to accommodate handler implementation changes
2b267fc
Fix bug in normalize gov parameters
8363685
Add example value to proposal type and vote option
88b4c66
Improve error handler in delete and update key
4631c0b
Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into i…
8045d49
Implement error type in key base
d88a213
Add /stake/validators/{validatorAddr}/unbonding_delegations and /stak…
6d6b58a
Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into i…
fb04cfb
Add change to about split issue 2258 to swagger.yaml
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we export references to the exact error types instead of this sort of logic? It introduces technical debt.
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.
I have thought about this idea. But this will change key base implementaion. To avoid too much impact to the code, I chosen this implementation.
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.
@HaoyangLiu How so? Ideally the client documentation shows the exact return types.
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.
you can check by the
code
orabci code
I guessThere 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.
The key base should export the error types directly - if it doesn't, let's fix it - all the relevant code should be in this repo I think.
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.
I'm sorry for misleading you. All code about key base implementation are in this repo too. My point is to minimize the change and limit the change to client code. If this is not a problem, I will change to code according to your suggestions.
@fedekunze
Currently the error has no error code or abci code. I will add error code in it.