You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the generated magic-module-input files computevirtualmachine, some properties are generated as:
- !ruby/object:Api::Azure::Type::[unknown-primary[object]]
name: 'settings'
description: 'Json formatted public settings for the extension.'
required: false
azure_sdk_references: ['/resources/settings', '/resources/properties/settings']
- !ruby/object:Api::Azure::Type::[unknown-primary[object]]
name: 'protectedSettings'
description: 'The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.'
required: false
azure_sdk_references: ['/resources/protectedSettings', '/resources/properties/protectedSettings']
The text was updated successfully, but these errors were encountered:
the 'setting' and 'protectedSettings' does not define it primary type.
It may define object type as following in swagger json file:
"settings": {
"type": "object",
"description": "Json formatted public settings for the extension.",
"additionalProperties": {
"type": "string"
}
},
"protectedSettings": {
"type": "object",
"description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.",
"additionalProperties": {
"type": "string"
}
},
Otherwise autorest cannot figure out the primary type, that means in autorest.cli input file, there is no primary type defined, and autorest.cli cannot correctly dispose it.
I am generating
api.yaml
file usingautorest.cli
with input file:azure-rest-api-specs\specification\compute\resource-manager\readme.md
Tag in use
package-2019-07
.Cli section added in
readme.md
Problem encountered
In the generated
magic-module-input
filescomputevirtualmachine
, some properties are generated as:The text was updated successfully, but these errors were encountered: