diff --git a/CHANGELOG.md b/CHANGELOG.md index 3924cb1b1..b1f6dc3bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Endpoint tags are now sanitized during parsing to fix an issue where `My Tag` and `MyTag` are seen as two different tags but are then later unified, causing errors when creating directories. Thanks @p1-ra! (#328) - 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! - Fix deserialization of `None` and `Unset` properties for all types by unifying the checks (#334). Thanks @forest-benchling! - If duplicate model names are detected during generation, you'll now get an error message instead of broken code (#336). Thanks @forest-benchling! 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) 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)