-
Notifications
You must be signed in to change notification settings - Fork 742
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
Any type for user defined types #13399
Comments
Tagging as "intermediate language" because there's currently no way to represent |
any is flagged as invalid type if you add it to parameter |
@jefedeltodos You could try the experimental resource-derived types feature. This would require a {
"experimentalFeaturesEnabled": {
"resourceDerivedTypes": true
}
} With that in place, you could define your parameter as the following: param operationTemplateParameters resource<'Microsoft.ApiManagement/service/apis/operations@2022-08-01'>.properties.templateParameters |
We are also running into this, not sure how to implement user-defined types for resources such as an Azure Policy assignment that has properties that can accept arbitrary types. Having the "any" type available would make this scenario a lot easier to deal with. |
Running into this issue as well, policy assignments are the most egregious ones. |
Another big example of any() usage in API https://learn.microsoft.com/en-us/azure/templates/microsoft.datafactory/2018-06-01/factories/datasets?pivots=deployment-language-bicep |
Is your feature request related to a problem? Please describe.
![image](https://private-user-images.githubusercontent.com/11890856/306644702-f6e57df9-1e5e-41f1-97c4-908b2166ebaa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzMzY4MjMsIm5iZiI6MTcyNTMzNjUyMywicGF0aCI6Ii8xMTg5MDg1Ni8zMDY2NDQ3MDItZjZlNTdkZjktMWU1ZS00MWYxLTk3YzQtOTA4YjIxNjZlYmFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAzVDA0MDg0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0YTg5ODM1ZTJkOGE3NDA5YTJiMDIwYTFmNjFlODg4NTg0NjJhMWY2Njk3NzNlYjBlYTRmYjU1OTI0NDBjNjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fz4Z5DuqcL5WdYXWMe3Yrhuxkowsa7QqMMSPkpGhAfE)
This API seems to have type of any. Should such type be available in user defined types?
Describe the solution you'd like
Should such type be available in user defined types?
The text was updated successfully, but these errors were encountered: