-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[Python] Fix Python UTF-8 Encoding Issue #5679
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
Merged
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
cdf8445
Try decoding but don't bail on error
CrshOverride c2c474e
Switch binary and ByteArray to bytes
CrshOverride 9aec538
Read content type and parse appropriately
CrshOverride 67889ce
Remove response parsing
CrshOverride 298cecc
Remove response parsing and just return the data
CrshOverride 6bff340
Update petshop examples w/ new generator code
CrshOverride 6df4a18
Fix copy/paste error with naming
CrshOverride a6e9a8b
Update petstore examples
CrshOverride 0e83469
Move response decoding to inside _preload_content block
CrshOverride 8633cbd
Update the clients again
CrshOverride 3729d12
Use a raw string for the regex pattern
CrshOverride 4e3e0f3
Regenerate petstore clients
CrshOverride d9c9062
Add bytes to python primitives as it's supported in 2.7 and 3
CrshOverride ce76a48
Add bytes to the exports from model_utils
CrshOverride 97586ff
Import bytes from model_utils
CrshOverride 02f7504
Add conditional typing for regex pattern to match variable type
CrshOverride ef36e6e
Regenerate petstore clients
CrshOverride a2aa585
Use read() instead of text() for asyncio
CrshOverride 21652a8
Regenerate petstore clients
CrshOverride 494358e
Remove unused six import
CrshOverride 786df18
Regenerate petstore clients
CrshOverride dfb9bd7
Add newline to kick Circle to re-run
CrshOverride 0d06ace
Merge branch 'master' of github.com:OpenAPITools/openapi-generator
CrshOverride 53e4c64
Remove whitespace from tox.ini
CrshOverride 577091e
Update more examples after ensure_updated
CrshOverride 7c46996
Merge branch 'master' of github.com:OpenAPITools/openapi-generator
CrshOverride ac55616
Add sample updates that didn't run with the --batch flag
CrshOverride f8a7a55
Remove extra bracket in regex to remove warning
CrshOverride 90f5bb0
Merge branch 'master' of github.com:OpenAPITools/openapi-generator
CrshOverride 0cdcc37
Stop printing debug messages
CrshOverride 6b49340
Add bytes examples to python doc generators
CrshOverride 9b1a462
Update generated FakeApi docs
CrshOverride 3615765
Regenerate api_client.py
CrshOverride 9f146ff
Remove print statements from generated clients
CrshOverride 94182ec
Update bytes example in FakeApi.md. Again. I swear.
CrshOverride 0969835
Add yet another seemingly missing doc update
CrshOverride f1de9f1
Catch the error, decode the body, and re-throw
CrshOverride 0b2da12
Remove the updates now that the change is non-breaking
CrshOverride 661a621
Regenerate client
CrshOverride 703e0ce
Add bytes deserialization test
CrshOverride 85820b0
Update exception parsing
CrshOverride 250d36e
Add exception parsing for python-experimental
CrshOverride 31455af
Regenerate client with minor changes
CrshOverride d6a7f39
Revert test changes
CrshOverride 141a9a3
Merge branch 'master' of github.com:OpenAPITools/openapi-generator
CrshOverride 654f1cd
Regenerate model_utils.py
CrshOverride ce0fb7c
Update confusing test name
CrshOverride 2f9e8f5
Remove bytes from mapping and examples
CrshOverride 5fe3095
Merge branch 'master' of github.com:CrshOverride/openapi-generator
CrshOverride 590986b
Add back in the old binary/ByteArray to str mapping
CrshOverride f260bac
Update docs and api_client template
CrshOverride a7ade74
Add experimental api_client changes
CrshOverride e9edfdf
Regenerate samples again
CrshOverride 14b2612
Add Tornado handling to early return
CrshOverride 127dfef
Try fixing Tornado python returns
CrshOverride 60f9fc9
More documentation changes
CrshOverride 663d947
Re-generate the client code
CrshOverride 9af7a7b
Remove bytes from test_format_test
CrshOverride 2d2a571
Remove more leftover bytes usages
CrshOverride 927f87d
Switch bytes validation back to string
CrshOverride f65c8c5
Merge branch 'master' of github.com:CrshOverride/openapi-generator
CrshOverride 206fe3c
Fix format_test template and regenerate
CrshOverride e55c9fa
Merge branch 'master' of github.com:CrshOverride/openapi-generator
CrshOverride 9c8750f
Remove unused bytes var
CrshOverride e0d058e
Remove bytes import from models and regenerate
CrshOverride 4d02d88
Remove bytes import from test_deserialization
CrshOverride 91573d6
Reduce nested ifs
CrshOverride b9834fc
Remove byte logic for now
CrshOverride d67fe9f
Regenerate client after latest changes
CrshOverride c84d165
Remove another bytes usage
CrshOverride aa44de5
Regenerate after removing dangling byte string usage
CrshOverride 5e8e54c
Reduce the scope of the try/catch in api_client
CrshOverride 4175601
Regenerate after try/catch cleanup
CrshOverride 01aed89
Swap catch for except
CrshOverride 6a76167
Regenerate Python client after api_client change
CrshOverride 8673b87
Fix lint error on the generated api_client
CrshOverride 23ab4e1
Add binary format test back in w/ string
CrshOverride 1de177c
Add decoding to python-experimental and regenerate
CrshOverride f806ca8
Import re into python-experimental api_client
CrshOverride 373782f
Ensure file upload json response is utf-8 encoded bytes
CrshOverride 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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,4 +150,4 @@ def test_string(self): | |
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() | ||
unittest.main() |
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.