InvalidSwaggerValueError: type is not supported : [None]
- Dominant language
- Python
- Stars
- 27
- Forks
- 77
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 3
Description
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')
```

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?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.