Skip to content

API version validation looks bugged #45165

@kalbert312

Description

@kalbert312
  • Package Name: azure-mgmt-resources-deploymentstacks
  • Package Version: 1.0.0
  • Operating System: Windows
  • Python Version: 3.13

Describe the bug
The API version validation in this package appears to have a bug. We have a new query parameter added on a new API version. The generated code that creates this request specifies this new query parameter as a keyword arg set to None by default. We do not set this query parameter at all in our code (CLI), but validation throws the parameter is not supported on the API version. It seems this validation is considering new query parameter set to None as a validation error when it should not.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout [ARM] Deployment Stacks initial 2025-07-01 API version support azure-cli#32777 at commit bc8df278a1f7e93bc5987565693900e3ac61119f
  2. Run azdev setup -c to install updated packages
  3. Run azdev test DeploymentStacksTest
  4. See test failures like in screenshot.

Expected behavior
Tests don't error with unmanage_action_resources_without_delete_support not supported on 2024-03-01 API version (the preexisting API version) when this is set to None.

Screenshots
Test errors:
Image

It is set to None:
Image

Additional context
I don't think this is blocking me because I intend to upgrade to the latest API version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions