Skip to content

2022-03-03 Compute/GalleryRP StorageAccountType Swagger failingΒ #23588

@JenGoldstrich

Description

@JenGoldstrich

πŸ‘‹ Hello,

In the 2022-03-03 Compute Gallery API the storageAccountType enum is defined with a different set of allowed values

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/gallery.json#L2560

This is causing an error for me when I am trying to add the 2022-03-03 compute APi to the SDK I am working on because of conflicting constants

error: -12T15:15:26.126Z [ERROR] Importer for Service "Compute".Importer for API Version "2022-03-03":      πŸ’₯ Error: parsing Swagger files: parsing files in "../../swagger/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03": parsing definition: finding resources for tag "GalleryApplicationVersions": finding nested items yet to be parsed: appending model: appending constants: conflicting constant "StorageAccountType" with different values. First: map[PremiumLRS:Premium_LRS StandardLRS:Standard_LRS StandardZRS:Standard_ZRS]. Second: map[PremiumLRS:Premium_LRS StandardLRS:Standard_LRS StandardSSDLRS:StandardSSD_LRS StandardZRS:Standard_ZRS]

This seems to have been introduced in #22255, looking at this PR I see the same change was also applied to the two previous API versions (2021-10-01 and 2022-01-03)

I see another PR here #22829 which was opened to address this which seems like a logical solution but am unsure why it was closed

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions