Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
112 stars 81 forks source link

Add support for any type #1259

Open isra-fel opened 11 months ago

isra-fel commented 11 months ago

Some services need to support any type, which means a property could be primitive types, object, array, etc.

autorest.powershell should support it to unblock some teams' migration.

dolauli commented 11 months ago

Swagger 2 does not support one-of/any. And the workaround is to define the property as an object without properties and additional properties in swagger.

isra-fel commented 11 months ago

These swagger extensions are a workaround to define any type in swagger v2 as if "one-of" in v3.

isra-fel commented 9 months ago

Tracked internally: Product Backlog Item 26117838: [PS] Autorest - support oneOf / anyOf