Azure / Azure/aaz-dev-tools

InvalidSwaggerValueError: type is not supported : [None]

Open
#332 0 comments 0 reactions 0 assignees View on GitHub
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')
```

![Screenshot 2024-03-01 115924](https://github.com/Azure/aaz-dev-tools/assets/5498623/9fdedd44-9d3c-4e50-8d1e-e42796a5a96f)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.