From 5a5c909d614b94e5af019412e0d3c6fd741cb6c7 Mon Sep 17 00:00:00 2001 From: Dylan Anthony <43723790+dbanty@users.noreply.github.com> Date: Wed, 10 Feb 2021 10:30:13 -0700 Subject: [PATCH 1/2] fix: Async example in generated README.md --- openapi_python_client/templates/README.md.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi_python_client/templates/README.md.jinja b/openapi_python_client/templates/README.md.jinja index 767bf9de0..2a5d18d87 100644 --- a/openapi_python_client/templates/README.md.jinja +++ b/openapi_python_client/templates/README.md.jinja @@ -34,7 +34,7 @@ Or do the same thing with an async version: ```python from {{ package_name }}.models import MyDataModel -from {{ package_name }}.async_api.my_tag import get_my_data_model +from {{ package_name }}.api.my_tag import get_my_data_model from {{ package_name }}.types import Response my_data: MyDataModel = await get_my_data_model.asyncio(client=client) From f833cfddb061b5d10a3b74357ad1f06a6a0dc288 Mon Sep 17 00:00:00 2001 From: Dylan Anthony Date: Wed, 10 Feb 2021 10:35:20 -0700 Subject: [PATCH 2/2] chore: Regen e2e and update CHANGELOG --- CHANGELOG.md | 1 + end_to_end_tests/golden-record-custom/README.md | 2 +- end_to_end_tests/golden-record/README.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a15906a5..4f42450f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Parser will softly ignore value error during schema responses' status code convertion from string to integer (not a number). Errors will be reported to the end user and parsing will continue to proceed (#327). - The generated `from_dict` and `to_dict` methods of models will now properly handle `nullable` and `not required` properties that are themselves generated models (#315). Thanks @forest-benchling! +- Fixed a typo in the async example in generated README.md files (#337). Thanks @synchronizing! ## 0.7.3 - 2020-12-21 diff --git a/end_to_end_tests/golden-record-custom/README.md b/end_to_end_tests/golden-record-custom/README.md index 836d52d62..bc568fdaa 100644 --- a/end_to_end_tests/golden-record-custom/README.md +++ b/end_to_end_tests/golden-record-custom/README.md @@ -34,7 +34,7 @@ Or do the same thing with an async version: ```python from custom_e2e.models import MyDataModel -from custom_e2e.async_api.my_tag import get_my_data_model +from custom_e2e.api.my_tag import get_my_data_model from custom_e2e.types import Response my_data: MyDataModel = await get_my_data_model.asyncio(client=client) diff --git a/end_to_end_tests/golden-record/README.md b/end_to_end_tests/golden-record/README.md index 1f9c3a6ee..cf7c54c9b 100644 --- a/end_to_end_tests/golden-record/README.md +++ b/end_to_end_tests/golden-record/README.md @@ -34,7 +34,7 @@ Or do the same thing with an async version: ```python from my_test_api_client.models import MyDataModel -from my_test_api_client.async_api.my_tag import get_my_data_model +from my_test_api_client.api.my_tag import get_my_data_model from my_test_api_client.types import Response my_data: MyDataModel = await get_my_data_model.asyncio(client=client)