From bb2a0ef5f36bf1d629d9ccca28724e6cce36369f Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Mon, 23 Jun 2025 07:59:47 +0000 Subject: [PATCH 1/8] Update dependencies (2025-06-23 07:59:46) --- packages/autorest.python/package.json | 4 ++-- packages/typespec-python/package.json | 4 ++-- pnpm-lock.yaml | 15 ++++++++------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index c1fa3adb6eb..876691845a6 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "~0.12.2", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} +} \ No newline at end of file diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 467838017d8..1accdef6df3 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "~0.12.2", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -103,4 +103,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fa5d2102154..5102dc68da6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: ~0.12.2 - version: 0.12.2(vtfeo5eqzs4rgrlyo4lexnsefm) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: ~0.12.2 - version: 0.12.2(vtfeo5eqzs4rgrlyo4lexnsefm) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1684,8 +1684,9 @@ packages: peerDependencies: '@typespec/compiler': ^1.1.0 - '@typespec/http-client-python@0.12.2': - resolution: {integrity: sha512-GyYl/6wKUxZ2ZcG40sgHxmRZEnJScqpxtVTpz1TslQhdD3TphDYOhp19KnzsBCrfUb5xhgE1l3vECFu2iZQkeg==} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz} + version: 0.12.3 engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.56.0 <1.0.0' @@ -6437,7 +6438,7 @@ snapshots: dependencies: '@typespec/compiler': 1.1.0(@types/node@22.13.17) - '@typespec/http-client-python@0.12.2(vtfeo5eqzs4rgrlyo4lexnsefm)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm)': dependencies: '@azure-tools/typespec-autorest': 0.57.0(wa525ucocerxeq5dfczkewujl4) '@azure-tools/typespec-azure-core': 0.57.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/http@1.1.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/streams@0.71.0(@typespec/compiler@1.1.0(@types/node@22.13.17))))(@typespec/rest@0.71.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/http@1.1.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/streams@0.71.0(@typespec/compiler@1.1.0(@types/node@22.13.17))))) From 035fc2e02f6b895ba8856fd08460e672378e2ae7 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Mon, 23 Jun 2025 08:04:27 +0000 Subject: [PATCH 2/8] Regenerate for typespec-python (2025-06-23 08:04:27) --- .../pageable/_operations/_operations.py | 1 + .../azure/payload/pageable/_validation.py | 22 +++++++++++++++++-- .../pageable/aio/_operations/_operations.py | 1 + .../srv/driven2/_operations/_operations.py | 4 ++++ .../resiliency/srv/driven2/_validation.py | 22 +++++++++++++++++-- .../driven2/aio/_operations/_operations.py | 4 ++++ .../versioning/added/_validation.py | 22 +++++++++++++++++-- .../added/aio/operations/_operations.py | 3 +++ .../added/operations/_operations.py | 3 +++ .../versioning/added/_validation.py | 22 +++++++++++++++++-- .../added/aio/operations/_operations.py | 3 +++ .../added/operations/_operations.py | 3 +++ 12 files changed, 102 insertions(+), 8 deletions(-) diff --git a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_operations/_operations.py index 1e8fa735eb6..175388dc7a9 100644 --- a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_operations/_operations.py @@ -63,6 +63,7 @@ class PageableClientOperationsMixin( @distributed_trace @api_version_validation( params_added_on={"1.0-preview.1": ["maxpagesize"]}, + api_versions_list=[], ) def list(self, **kwargs: Any) -> ItemPaged["_models.User"]: """List users. diff --git a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_validation.py b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_validation.py index 752b2822f9d..3afce3a4c3c 100644 --- a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_validation.py +++ b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_validation.py @@ -4,12 +4,29 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import sys import functools def api_version_validation(**kwargs): params_added_on = kwargs.pop("params_added_on", {}) method_added_on = kwargs.pop("method_added_on", "") + api_versions_list = kwargs.pop("api_versions_list", []) + + def _index_with_default(value: str, default: int = -1) -> int: + """Get the index of value in lst, or return default if not found. + + :param value: The value to search for in the api_versions_list. + :type value: str + :param default: The default value to return if the value is not found. + :type default: int + :return: The index of the value in the list, or the default value if not found. + :rtype: int + """ + try: + return api_versions_list.index(value) + except ValueError: + return default def decorator(func): @functools.wraps(func) @@ -21,7 +38,7 @@ def wrapper(*args, **kwargs): except AttributeError: return func(*args, **kwargs) - if method_added_on > client_api_version: + if _index_with_default(method_added_on) > _index_with_default(client_api_version, -sys.maxsize): raise ValueError( f"'{func.__name__}' is not available in API version " f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." @@ -31,7 +48,8 @@ def wrapper(*args, **kwargs): parameter: api_version for api_version, parameters in params_added_on.items() for parameter in parameters - if parameter in kwargs and api_version > client_api_version + if parameter in kwargs + and _index_with_default(api_version) > _index_with_default(client_api_version, -sys.maxsize) } if unsupported: raise ValueError( diff --git a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/aio/_operations/_operations.py index b8bb19d7a6f..e150d6f4376 100644 --- a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/aio/_operations/_operations.py @@ -41,6 +41,7 @@ class PageableClientOperationsMixin( @distributed_trace @api_version_validation( params_added_on={"1.0-preview.1": ["maxpagesize"]}, + api_versions_list=[], ) def list(self, **kwargs: Any) -> AsyncItemPaged["_models.User"]: """List users. diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_operations/_operations.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_operations/_operations.py index b64a9559a99..e454bc2aa90 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_operations/_operations.py @@ -98,6 +98,7 @@ class ResiliencyServiceDrivenClientOperationsMixin( # pylint: disable=name-too- @distributed_trace @api_version_validation( method_added_on="v2", + api_versions_list=["v2"], ) def add_operation(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Added operation. @@ -149,6 +150,7 @@ def add_operation(self, **kwargs: Any) -> None: # pylint: disable=inconsistent- @distributed_trace @api_version_validation( params_added_on={"v2": ["new_parameter"]}, + api_versions_list=["v1", "v2"], ) def from_none(self, *, new_parameter: Optional[str] = None, **kwargs: Any) -> bool: """Test that grew up from accepting no parameters to an optional input parameter. @@ -204,6 +206,7 @@ def from_none(self, *, new_parameter: Optional[str] = None, **kwargs: Any) -> bo @distributed_trace @api_version_validation( params_added_on={"v2": ["new_parameter"]}, + api_versions_list=["v1", "v2"], ) def from_one_required( # pylint: disable=inconsistent-return-statements self, *, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any @@ -264,6 +267,7 @@ def from_one_required( # pylint: disable=inconsistent-return-statements @distributed_trace @api_version_validation( params_added_on={"v2": ["new_parameter"]}, + api_versions_list=["v1", "v2"], ) def from_one_optional( # pylint: disable=inconsistent-return-statements self, *, parameter: Optional[str] = None, new_parameter: Optional[str] = None, **kwargs: Any diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_validation.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_validation.py index 752b2822f9d..3afce3a4c3c 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_validation.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_validation.py @@ -4,12 +4,29 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import sys import functools def api_version_validation(**kwargs): params_added_on = kwargs.pop("params_added_on", {}) method_added_on = kwargs.pop("method_added_on", "") + api_versions_list = kwargs.pop("api_versions_list", []) + + def _index_with_default(value: str, default: int = -1) -> int: + """Get the index of value in lst, or return default if not found. + + :param value: The value to search for in the api_versions_list. + :type value: str + :param default: The default value to return if the value is not found. + :type default: int + :return: The index of the value in the list, or the default value if not found. + :rtype: int + """ + try: + return api_versions_list.index(value) + except ValueError: + return default def decorator(func): @functools.wraps(func) @@ -21,7 +38,7 @@ def wrapper(*args, **kwargs): except AttributeError: return func(*args, **kwargs) - if method_added_on > client_api_version: + if _index_with_default(method_added_on) > _index_with_default(client_api_version, -sys.maxsize): raise ValueError( f"'{func.__name__}' is not available in API version " f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." @@ -31,7 +48,8 @@ def wrapper(*args, **kwargs): parameter: api_version for api_version, parameters in params_added_on.items() for parameter in parameters - if parameter in kwargs and api_version > client_api_version + if parameter in kwargs + and _index_with_default(api_version) > _index_with_default(client_api_version, -sys.maxsize) } if unsupported: raise ValueError( diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_operations/_operations.py index 634a062fd6b..26180854a94 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_operations/_operations.py @@ -43,6 +43,7 @@ class ResiliencyServiceDrivenClientOperationsMixin( # pylint: disable=name-too- @distributed_trace_async @api_version_validation( method_added_on="v2", + api_versions_list=["v2"], ) async def add_operation(self, **kwargs: Any) -> None: """Added operation. @@ -94,6 +95,7 @@ async def add_operation(self, **kwargs: Any) -> None: @distributed_trace_async @api_version_validation( params_added_on={"v2": ["new_parameter"]}, + api_versions_list=["v1", "v2"], ) async def from_none(self, *, new_parameter: Optional[str] = None, **kwargs: Any) -> bool: """Test that grew up from accepting no parameters to an optional input parameter. @@ -149,6 +151,7 @@ async def from_none(self, *, new_parameter: Optional[str] = None, **kwargs: Any) @distributed_trace_async @api_version_validation( params_added_on={"v2": ["new_parameter"]}, + api_versions_list=["v1", "v2"], ) async def from_one_required(self, *, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any) -> None: """Operation that grew up from accepting one required parameter to accepting a required parameter @@ -207,6 +210,7 @@ async def from_one_required(self, *, parameter: str, new_parameter: Optional[str @distributed_trace_async @api_version_validation( params_added_on={"v2": ["new_parameter"]}, + api_versions_list=["v1", "v2"], ) async def from_one_optional( self, *, parameter: Optional[str] = None, new_parameter: Optional[str] = None, **kwargs: Any diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_validation.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_validation.py index 752b2822f9d..3afce3a4c3c 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_validation.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_validation.py @@ -4,12 +4,29 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import sys import functools def api_version_validation(**kwargs): params_added_on = kwargs.pop("params_added_on", {}) method_added_on = kwargs.pop("method_added_on", "") + api_versions_list = kwargs.pop("api_versions_list", []) + + def _index_with_default(value: str, default: int = -1) -> int: + """Get the index of value in lst, or return default if not found. + + :param value: The value to search for in the api_versions_list. + :type value: str + :param default: The default value to return if the value is not found. + :type default: int + :return: The index of the value in the list, or the default value if not found. + :rtype: int + """ + try: + return api_versions_list.index(value) + except ValueError: + return default def decorator(func): @functools.wraps(func) @@ -21,7 +38,7 @@ def wrapper(*args, **kwargs): except AttributeError: return func(*args, **kwargs) - if method_added_on > client_api_version: + if _index_with_default(method_added_on) > _index_with_default(client_api_version, -sys.maxsize): raise ValueError( f"'{func.__name__}' is not available in API version " f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." @@ -31,7 +48,8 @@ def wrapper(*args, **kwargs): parameter: api_version for api_version, parameters in params_added_on.items() for parameter in parameters - if parameter in kwargs and api_version > client_api_version + if parameter in kwargs + and _index_with_default(api_version) > _index_with_default(client_api_version, -sys.maxsize) } if unsupported: raise ValueError( diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/operations/_operations.py index 7edcf3f99e1..68f935e55e4 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/operations/_operations.py @@ -113,6 +113,7 @@ async def v2_in_interface( @api_version_validation( method_added_on="v2", params_added_on={"v2": ["content_type", "accept"]}, + api_versions_list=["v2"], ) async def v2_in_interface(self, body: Union[_models.ModelV2, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV2: """v2_in_interface. @@ -244,6 +245,7 @@ async def v1( @distributed_trace_async @api_version_validation( params_added_on={"v2": ["header_v2"]}, + api_versions_list=["v1", "v2"], ) async def v1( self, body: Union[_models.ModelV1, JSON, IO[bytes]], *, header_v2: str, **kwargs: Any @@ -366,6 +368,7 @@ async def v2(self, body: IO[bytes], *, content_type: str = "application/json", * @api_version_validation( method_added_on="v2", params_added_on={"v2": ["content_type", "accept"]}, + api_versions_list=["v2"], ) async def v2(self, body: Union[_models.ModelV2, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV2: """v2. diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/operations/_operations.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/operations/_operations.py index db11f9b3456..c045852e337 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/operations/_operations.py @@ -160,6 +160,7 @@ def v2_in_interface( @api_version_validation( method_added_on="v2", params_added_on={"v2": ["content_type", "accept"]}, + api_versions_list=["v2"], ) def v2_in_interface(self, body: Union[_models.ModelV2, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV2: """v2_in_interface. @@ -289,6 +290,7 @@ def v1( @distributed_trace @api_version_validation( params_added_on={"v2": ["header_v2"]}, + api_versions_list=["v1", "v2"], ) def v1(self, body: Union[_models.ModelV1, JSON, IO[bytes]], *, header_v2: str, **kwargs: Any) -> _models.ModelV1: """v1. @@ -407,6 +409,7 @@ def v2(self, body: IO[bytes], *, content_type: str = "application/json", **kwarg @api_version_validation( method_added_on="v2", params_added_on={"v2": ["content_type", "accept"]}, + api_versions_list=["v2"], ) def v2(self, body: Union[_models.ModelV2, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV2: """v2. diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_validation.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_validation.py index 964148cf00e..6aa39d2fa08 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_validation.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_validation.py @@ -1,9 +1,26 @@ +import sys import functools def api_version_validation(**kwargs): params_added_on = kwargs.pop("params_added_on", {}) method_added_on = kwargs.pop("method_added_on", "") + api_versions_list = kwargs.pop("api_versions_list", []) + + def _index_with_default(value: str, default: int = -1) -> int: + """Get the index of value in lst, or return default if not found. + + :param value: The value to search for in the api_versions_list. + :type value: str + :param default: The default value to return if the value is not found. + :type default: int + :return: The index of the value in the list, or the default value if not found. + :rtype: int + """ + try: + return api_versions_list.index(value) + except ValueError: + return default def decorator(func): @functools.wraps(func) @@ -15,7 +32,7 @@ def wrapper(*args, **kwargs): except AttributeError: return func(*args, **kwargs) - if method_added_on > client_api_version: + if _index_with_default(method_added_on) > _index_with_default(client_api_version, -sys.maxsize): raise ValueError( f"'{func.__name__}' is not available in API version " f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." @@ -25,7 +42,8 @@ def wrapper(*args, **kwargs): parameter: api_version for api_version, parameters in params_added_on.items() for parameter in parameters - if parameter in kwargs and api_version > client_api_version + if parameter in kwargs + and _index_with_default(api_version) > _index_with_default(client_api_version, -sys.maxsize) } if unsupported: raise ValueError( diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/operations/_operations.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/operations/_operations.py index 516a79fe7ea..cb9ac3da19f 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/operations/_operations.py @@ -104,6 +104,7 @@ async def v2_in_interface( @api_version_validation( method_added_on="v2", params_added_on={"v2": ["content_type", "accept"]}, + api_versions_list=["v2"], ) async def v2_in_interface(self, body: Union[_models.ModelV2, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV2: """v2_in_interface. @@ -232,6 +233,7 @@ async def v1( @api_version_validation( params_added_on={"v2": ["header_v2"]}, + api_versions_list=["v1", "v2"], ) async def v1( self, body: Union[_models.ModelV1, JSON, IO[bytes]], *, header_v2: str, **kwargs: Any @@ -353,6 +355,7 @@ async def v2(self, body: IO[bytes], *, content_type: str = "application/json", * @api_version_validation( method_added_on="v2", params_added_on={"v2": ["content_type", "accept"]}, + api_versions_list=["v2"], ) async def v2(self, body: Union[_models.ModelV2, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV2: """v2. diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/operations/_operations.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/operations/_operations.py index 8261ec2c41f..ec4ac7053ec 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/operations/_operations.py @@ -152,6 +152,7 @@ def v2_in_interface( @api_version_validation( method_added_on="v2", params_added_on={"v2": ["content_type", "accept"]}, + api_versions_list=["v2"], ) def v2_in_interface(self, body: Union[_models.ModelV2, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV2: """v2_in_interface. @@ -278,6 +279,7 @@ def v1( @api_version_validation( params_added_on={"v2": ["header_v2"]}, + api_versions_list=["v1", "v2"], ) def v1(self, body: Union[_models.ModelV1, JSON, IO[bytes]], *, header_v2: str, **kwargs: Any) -> _models.ModelV1: """v1. @@ -393,6 +395,7 @@ def v2(self, body: IO[bytes], *, content_type: str = "application/json", **kwarg @api_version_validation( method_added_on="v2", params_added_on={"v2": ["content_type", "accept"]}, + api_versions_list=["v2"], ) def v2(self, body: Union[_models.ModelV2, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV2: """v2. From 9674a2ef8875375fcf6b9cc351198d512130f6dc Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Mon, 23 Jun 2025 16:27:34 +0800 Subject: [PATCH 3/8] add changelog --- ...t-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md | 8 ++++++++ ...t-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 .chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md create mode 100644 .chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md diff --git a/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md b/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md new file mode 100644 index 00000000000..abee01fcf40 --- /dev/null +++ b/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md @@ -0,0 +1,8 @@ +--- +changeKind: dependencies +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +Add support for `validate-versioning` flag, so users can toggle whether they get api versioning validation \ No newline at end of file diff --git a/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md b/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md new file mode 100644 index 00000000000..d6ec29a680d --- /dev/null +++ b/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md @@ -0,0 +1,7 @@ +--- +changeKind: dependencies +packages: + - "@azure-tools/typespec-python" +--- + +Validate api versions by looking at ordering of api versions from spec \ No newline at end of file From 55ad3ffa554c4971b439f459e978d38863c60ddb Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Mon, 23 Jun 2025 09:18:04 +0000 Subject: [PATCH 4/8] Update dependencies (2025-06-23 09:18:04) --- packages/autorest.python/package.json | 2 +- packages/typespec-python/package.json | 2 +- pnpm-lock.yaml | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 876691845a6..fb0136f4075 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 1accdef6df3..b9e78c351ab 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5102dc68da6..d215c517591 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1684,8 +1684,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.1.0 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz} version: 0.12.3 engines: {node: '>=20.0.0'} peerDependencies: @@ -6438,7 +6438,7 @@ snapshots: dependencies: '@typespec/compiler': 1.1.0(@types/node@22.13.17) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMjU5My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm)': dependencies: '@azure-tools/typespec-autorest': 0.57.0(wa525ucocerxeq5dfczkewujl4) '@azure-tools/typespec-azure-core': 0.57.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/http@1.1.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/streams@0.71.0(@typespec/compiler@1.1.0(@types/node@22.13.17))))(@typespec/rest@0.71.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/http@1.1.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/streams@0.71.0(@typespec/compiler@1.1.0(@types/node@22.13.17))))) From 27749bbbd9b2b5d36d0e594b4a430071d53a056f Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Mon, 23 Jun 2025 09:22:44 +0000 Subject: [PATCH 5/8] Regenerate for typespec-python (2025-06-23 09:22:44) --- .../specs/azure/payload/pageable/_operations/_operations.py | 1 - .../specs/azure/payload/pageable/_validation.py | 6 ++---- .../azure/payload/pageable/aio/_operations/_operations.py | 1 - .../resiliency/srv/driven2/_validation.py | 6 ++---- .../versioning-added/versioning/added/_validation.py | 6 ++---- .../versioning-added/versioning/added/_validation.py | 6 ++---- 6 files changed, 8 insertions(+), 18 deletions(-) diff --git a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_operations/_operations.py index 175388dc7a9..1e8fa735eb6 100644 --- a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_operations/_operations.py @@ -63,7 +63,6 @@ class PageableClientOperationsMixin( @distributed_trace @api_version_validation( params_added_on={"1.0-preview.1": ["maxpagesize"]}, - api_versions_list=[], ) def list(self, **kwargs: Any) -> ItemPaged["_models.User"]: """List users. diff --git a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_validation.py b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_validation.py index 3afce3a4c3c..f5af3a4eb8a 100644 --- a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_validation.py +++ b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_validation.py @@ -4,7 +4,6 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys import functools @@ -38,7 +37,7 @@ def wrapper(*args, **kwargs): except AttributeError: return func(*args, **kwargs) - if _index_with_default(method_added_on) > _index_with_default(client_api_version, -sys.maxsize): + if _index_with_default(method_added_on) > _index_with_default(client_api_version): raise ValueError( f"'{func.__name__}' is not available in API version " f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." @@ -48,8 +47,7 @@ def wrapper(*args, **kwargs): parameter: api_version for api_version, parameters in params_added_on.items() for parameter in parameters - if parameter in kwargs - and _index_with_default(api_version) > _index_with_default(client_api_version, -sys.maxsize) + if parameter in kwargs and _index_with_default(api_version) > _index_with_default(client_api_version) } if unsupported: raise ValueError( diff --git a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/aio/_operations/_operations.py index e150d6f4376..b8bb19d7a6f 100644 --- a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/aio/_operations/_operations.py @@ -41,7 +41,6 @@ class PageableClientOperationsMixin( @distributed_trace @api_version_validation( params_added_on={"1.0-preview.1": ["maxpagesize"]}, - api_versions_list=[], ) def list(self, **kwargs: Any) -> AsyncItemPaged["_models.User"]: """List users. diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_validation.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_validation.py index 3afce3a4c3c..f5af3a4eb8a 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_validation.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_validation.py @@ -4,7 +4,6 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys import functools @@ -38,7 +37,7 @@ def wrapper(*args, **kwargs): except AttributeError: return func(*args, **kwargs) - if _index_with_default(method_added_on) > _index_with_default(client_api_version, -sys.maxsize): + if _index_with_default(method_added_on) > _index_with_default(client_api_version): raise ValueError( f"'{func.__name__}' is not available in API version " f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." @@ -48,8 +47,7 @@ def wrapper(*args, **kwargs): parameter: api_version for api_version, parameters in params_added_on.items() for parameter in parameters - if parameter in kwargs - and _index_with_default(api_version) > _index_with_default(client_api_version, -sys.maxsize) + if parameter in kwargs and _index_with_default(api_version) > _index_with_default(client_api_version) } if unsupported: raise ValueError( diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_validation.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_validation.py index 3afce3a4c3c..f5af3a4eb8a 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_validation.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_validation.py @@ -4,7 +4,6 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys import functools @@ -38,7 +37,7 @@ def wrapper(*args, **kwargs): except AttributeError: return func(*args, **kwargs) - if _index_with_default(method_added_on) > _index_with_default(client_api_version, -sys.maxsize): + if _index_with_default(method_added_on) > _index_with_default(client_api_version): raise ValueError( f"'{func.__name__}' is not available in API version " f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." @@ -48,8 +47,7 @@ def wrapper(*args, **kwargs): parameter: api_version for api_version, parameters in params_added_on.items() for parameter in parameters - if parameter in kwargs - and _index_with_default(api_version) > _index_with_default(client_api_version, -sys.maxsize) + if parameter in kwargs and _index_with_default(api_version) > _index_with_default(client_api_version) } if unsupported: raise ValueError( diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_validation.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_validation.py index 6aa39d2fa08..0fda5b387eb 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_validation.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_validation.py @@ -1,4 +1,3 @@ -import sys import functools @@ -32,7 +31,7 @@ def wrapper(*args, **kwargs): except AttributeError: return func(*args, **kwargs) - if _index_with_default(method_added_on) > _index_with_default(client_api_version, -sys.maxsize): + if _index_with_default(method_added_on) > _index_with_default(client_api_version): raise ValueError( f"'{func.__name__}' is not available in API version " f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." @@ -42,8 +41,7 @@ def wrapper(*args, **kwargs): parameter: api_version for api_version, parameters in params_added_on.items() for parameter in parameters - if parameter in kwargs - and _index_with_default(api_version) > _index_with_default(client_api_version, -sys.maxsize) + if parameter in kwargs and _index_with_default(api_version) > _index_with_default(client_api_version) } if unsupported: raise ValueError( From 91abc791700870f08013daf059ab4a31c4b9e456 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Mon, 23 Jun 2025 18:44:29 +0800 Subject: [PATCH 6/8] bump version --- ...t-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md | 8 -------- ...t-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md | 7 ------- packages/autorest.python/CHANGELOG.md | 7 +++++++ packages/autorest.python/package.json | 4 ++-- packages/typespec-python/CHANGELOG.md | 8 ++++++++ packages/typespec-python/package.json | 4 ++-- 6 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 .chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md delete mode 100644 .chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md diff --git a/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md b/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md deleted file mode 100644 index abee01fcf40..00000000000 --- a/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-26-44.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -changeKind: dependencies -packages: - - "@autorest/python" - - "@azure-tools/typespec-python" ---- - -Add support for `validate-versioning` flag, so users can toggle whether they get api versioning validation \ No newline at end of file diff --git a/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md b/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md deleted file mode 100644 index d6ec29a680d..00000000000 --- a/.chronus/changes/auto-microsoft-publish-python-bump-2025-06-23-2025-5-23-16-27-22.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: dependencies -packages: - - "@azure-tools/typespec-python" ---- - -Validate api versions by looking at ordering of api versions from spec \ No newline at end of file diff --git a/packages/autorest.python/CHANGELOG.md b/packages/autorest.python/CHANGELOG.md index 613b53a2153..0f1d7ce033c 100644 --- a/packages/autorest.python/CHANGELOG.md +++ b/packages/autorest.python/CHANGELOG.md @@ -1,5 +1,12 @@ # Release +## 6.35.3 + +### Bump dependencies + +- [#3103](https://github.com/Azure/autorest.python/pull/3103) Add support for `validate-versioning` flag, so users can toggle whether they get api versioning validation + + ## 6.35.2 No changes, version bump only. diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 876691845a6..cf3f87408a1 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -1,6 +1,6 @@ { "name": "@autorest/python", - "version": "6.35.2", + "version": "6.35.3", "description": "The Python extension for generators in AutoRest.", "scripts": { "start": "node ./scripts/run-python3.js ./scripts/start.py", @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} \ No newline at end of file +} diff --git a/packages/typespec-python/CHANGELOG.md b/packages/typespec-python/CHANGELOG.md index 4feb490b853..5b958ae4be0 100644 --- a/packages/typespec-python/CHANGELOG.md +++ b/packages/typespec-python/CHANGELOG.md @@ -1,5 +1,13 @@ # Release +## 0.45.3 + +### Bump dependencies + +- [#3103](https://github.com/Azure/autorest.python/pull/3103) Add support for `validate-versioning` flag, so users can toggle whether they get api versioning validation +- [#3103](https://github.com/Azure/autorest.python/pull/3103) Validate api versions by looking at ordering of api versions from spec + + ## 0.45.2 No changes, version bump only. diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 1accdef6df3..ff536a1cdd6 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/typespec-python", - "version": "0.45.2", + "version": "0.45.3", "author": "Microsoft Corporation", "description": "TypeSpec emitter for Python SDKs", "homepage": "https://github.com/Azure/autorest.python", @@ -103,4 +103,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} \ No newline at end of file +} From cc013d8d14607e87ab018ec9fd9f08de8a212460 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Mon, 23 Jun 2025 18:47:47 +0800 Subject: [PATCH 7/8] bump dep --- packages/autorest.python/package.json | 2 +- packages/typespec-python/package.json | 2 +- pnpm-lock.yaml | 15 +++++++-------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index e51e2bf1930..fe8ce6599a2 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz", + "@typespec/http-client-python": "~0.12.3", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 780710f102a..bb164b10ad2 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz", + "@typespec/http-client-python": "~0.12.3", "fs-extra": "~11.2.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d215c517591..0e858d1fba5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm) + specifier: ~0.12.3 + version: 0.12.3(vtfeo5eqzs4rgrlyo4lexnsefm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm) + specifier: ~0.12.3 + version: 0.12.3(vtfeo5eqzs4rgrlyo4lexnsefm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1684,9 +1684,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.1.0 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz} - version: 0.12.3 + '@typespec/http-client-python@0.12.3': + resolution: {integrity: sha512-uKk/L1IpY/pUihARPOKfpqttreV0WLPN2edWiWi9VSsSJ+t3CTD2A4dWkM7TgJaJhQD2iLz3VtJhgsvYFW4NFw==} engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.56.0 <1.0.0' @@ -6438,7 +6437,7 @@ snapshots: dependencies: '@typespec/compiler': 1.1.0(@types/node@22.13.17) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAwMzA4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.3.tgz(vtfeo5eqzs4rgrlyo4lexnsefm)': + '@typespec/http-client-python@0.12.3(vtfeo5eqzs4rgrlyo4lexnsefm)': dependencies: '@azure-tools/typespec-autorest': 0.57.0(wa525ucocerxeq5dfczkewujl4) '@azure-tools/typespec-azure-core': 0.57.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/http@1.1.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/streams@0.71.0(@typespec/compiler@1.1.0(@types/node@22.13.17))))(@typespec/rest@0.71.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/http@1.1.0(@typespec/compiler@1.1.0(@types/node@22.13.17))(@typespec/streams@0.71.0(@typespec/compiler@1.1.0(@types/node@22.13.17))))) From 9ee490e310fe1a530b3d29317bad8a2848e6bf77 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Mon, 23 Jun 2025 19:28:57 +0800 Subject: [PATCH 8/8] Update CHANGELOG.md --- packages/autorest.python/CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/autorest.python/CHANGELOG.md b/packages/autorest.python/CHANGELOG.md index 0f1d7ce033c..97cf5559ccd 100644 --- a/packages/autorest.python/CHANGELOG.md +++ b/packages/autorest.python/CHANGELOG.md @@ -4,8 +4,7 @@ ### Bump dependencies -- [#3103](https://github.com/Azure/autorest.python/pull/3103) Add support for `validate-versioning` flag, so users can toggle whether they get api versioning validation - +- Regular release ## 6.35.2