It is generated as type Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason in swagger as showed in that playground.
For .net, for this generated swagger we will generate model with name AzureResourceManagerCommonTypesCheckNameAvailabilityReason, which is expected to be CheckNameAvailabilityReason.
So I'm thinking the expected swagger model might be a reference to common type like:
"reason": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/CheckNameAvailabilityReason"
"description": "The reason why the given name is not available."
},
In the playground, we take
CheckNameAvailabilityReason
as example, which comes fromAzure.ResourceManager.CommonTypes
.It is generated as type
Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason
in swagger as showed in that playground.For .net, for this generated swagger we will generate model with name
AzureResourceManagerCommonTypesCheckNameAvailabilityReason
, which is expected to beCheckNameAvailabilityReason
.So I'm thinking the expected swagger model might be a reference to common type like:
Same to other types.