Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for any type #1259

Open
isra-fel opened this issue Oct 17, 2023 · 3 comments
Open

Add support for any type #1259

isra-fel opened this issue Oct 17, 2023 · 3 comments

Comments

@isra-fel
Copy link
Member

isra-fel commented Oct 17, 2023

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
Copy link
Contributor

dolauli commented Oct 19, 2023

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.

@dolauli dolauli changed the title Support "x-ms-format": "dfe-list-generic" Add support for any type Oct 19, 2023
@isra-fel
Copy link
Member Author

isra-fel commented Oct 19, 2023

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

@isra-fel
Copy link
Member Author

isra-fel commented Dec 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants