Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
11 stars 37 forks source link

Enable @armCommonDefinition to be applied to enum and union #995

Closed allenjzhang closed 2 months ago

allenjzhang commented 3 months ago

Currently, @armCommonDefinition can only be applied to model. This leaves out a number of enum/union types out of $ref to common-types. To achieve full reference-ability, we should enable this capability. It is arguable that most spec would not directly reference these sub-types in the common-type swagger, but in reality there are few specs do today (around ManagedServiceIdenitityType). There could be future cases as well.

https://github.com/search?q=repo%3AAzure%2Fazure-rest-api-specs+path%3A*.json+%22Azure.ResourceManager.Foundations%22&type=code