aaz-dev-tools icon indicating copy to clipboard operation
aaz-dev-tools copied to clipboard

InvalidSwaggerValueError: type is not supported : [None]

Open kalbert312 opened this issue 11 months ago • 0 comments

I am trying to use aaz-dev to generate command modules from changes in this PR https://github.com/Azure/azure-rest-api-specs/pull/27529 however I'm getting the following error after clicking "Submit" in my workspace:

ResponseError: InvalidSwaggerValueError: type is not supported : [None] : ('C:\\dev\\projects\\azure-rest-api-specs\\specification\\resources\\resource-manager\\Microsoft.Resources\\stable\\2024-03-01\\deploymentStacks.json', 'definitions', 'DeploymentParameter', 'properties', 'value')

Screenshot 2024-03-01 115924

This is the relevant swagger definition: https://github.com/Azure/azure-rest-api-specs/pull/27529/files#diff-ce26e6277ce376291646359d007c1267f3d1f94a8a799c60bcbba402d64ea43bR1350

The type of this value property is dynamic. It is an 'any' type (number, string, boolean, object, array, null, etc) and its actual value type is checked at runtime in the service.

There doesn't seem to be a spec for an 'any' type, but supposedly the swagger tooling treats an unspecified type as any.

What should I do in this case? Is it a bug or can I represent this a different way such as binary data?

kalbert312 avatar Mar 01 '24 17:03 kalbert312