-
-
Notifications
You must be signed in to change notification settings - Fork 60
feat: add-response-model #64
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
Merged
+554
−49
Merged
Changes from 28 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c99d7fb
add poetry dependency
e911222
create APIResponse model
315a303
return APIResponse model in execute method
e6310c5
sort imports
790811f
mypy bug workaround (https://github.com/python/mypy/issues/9319)
54df5b2
split logic, validate error existance and better type APIResponse
c6a3f25
Implement APIError
df86617
add missing black config in pre-commit config
3708992
type APIError properties
032a221
fix: rm unused code and use returning param in update
425a1c6
refactor: reorder lines
1972db1
chore: Merge branch 'master' into add-response-model
d0638b4
chore: rebuild sync
b2eb3ac
chore: rebuild poetry.lock
bddf023
fix: remove wrong parameter
920b3e2
chore: format
8a7cce5
Chore: add missing return types
dreinon 6dbd5cb
chore: replace builtin dict by Dict to support python < 3.9
c569b2a
chore: update precommit hooks
aea8dc4
chore: apply format
afdd725
update return type in execute method
6c9448c
use relative import
2ecbeca
add link to mypy issue
3df240b
switch super init by class init to avoid future errors
2a806b2
chore: apply future annotations notation to return
54ade70
chore: rebuild sync
2df9d14
tests: Add tests for response model (#74)
J0 4da9fe4
Merge branch 'master' into add-response-model
cfe8e38
chore: modify ValueError with ValidationError
11399b9
chore: add "_" to internal methods
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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.