Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidSwaggerValueError: type is not supported : [None] #332

Open
kalbert312 opened this issue Mar 1, 2024 · 0 comments
Open

InvalidSwaggerValueError: type is not supported : [None] #332

kalbert312 opened this issue Mar 1, 2024 · 0 comments

Comments

@kalbert312
Copy link
Member

kalbert312 commented Mar 1, 2024

I am trying to use aaz-dev to generate command modules from changes in this PR Azure/azure-rest-api-specs#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 kalbert312 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
@kalbert312 kalbert312 reopened this Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant