You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add @featureFile decorators in Azure.ResourceManager and fix template suppression propagation
- Add @featureFile, @featureFiles, @featureFileOptions decorators in Azure.ResourceManager
namespace as alternatives to the Legacy @feature, @features, @featureOptions decorators
- Fix arm-custom-resource-usage-discourage rule to propagate suppressions from model
templates to their instantiations
- Regenerate reference docs
- Update tests to use new decorator names
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add `@featureFile`, `@featureFiles`, and `@featureFileOptions` decorators in `Azure.ResourceManager` namespace as alternatives to the Legacy `@feature`, `@features`, and `@featureOptions` decorators. Add `arm-feature-file-usage-discourage` linting rule. Fix `arm-custom-resource-usage-discourage` rule to propagate suppressions from model templates to their instantiations.
Copy file name to clipboardExpand all lines: packages/typespec-azure-resource-manager/README.md
+61Lines changed: 61 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ Available ruleSets:
49
49
| [`@azure-tools/typespec-azure-resource-manager/version-progression`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/version-progression) | Validate that ARM service versions all use unique dates and are declared in strictly increasing chronological order. |
50
50
| [`@azure-tools/typespec-azure-resource-manager/arm-custom-resource-no-key`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-custom-resource-no-key) | Validate that custom resource contains a key property. |
51
51
| [`@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-custom-resource-usage-discourage) | Verify the usage of @customAzureResource decorator. |
52
+
| [`@azure-tools/typespec-azure-resource-manager/arm-feature-file-usage-discourage`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-feature-file-usage-discourage) | Verify the usage of @featureFiles decorator. |
52
53
| [`@azure-tools/typespec-azure-resource-manager/beyond-nesting-levels`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/beyond-nesting-levels) | Tracked Resources must use 3 or fewer levels of nesting. |
53
54
| [`@azure-tools/typespec-azure-resource-manager/arm-resource-operation`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-resource-operation) | Validate ARM Resource operations. |
54
55
| [`@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-resource-delete-operation) | Check for resources that must have a delete operation. |
@@ -87,6 +88,9 @@ Available ruleSets:
87
88
- [`@armResourceUpdate`](#@armresourceupdate)
88
89
- [`@armVirtualResource`](#@armvirtualresource)
89
90
- [`@extensionResource`](#@extensionresource)
91
+
- [`@featureFile`](#@featurefile)
92
+
- [`@featureFileOptions`](#@featurefileoptions)
93
+
- [`@featureFiles`](#@featurefiles)
90
94
- [`@identifiers`](#@identifiers)
91
95
- [`@locationResource`](#@locationresource)
92
96
- [`@resourceBaseType`](#@resourcebasetype)
@@ -398,6 +402,63 @@ See more details on [different Azure Resource Manager resource type here.](https
398
402
399
403
None
400
404
405
+
#### `@featureFile`
406
+
407
+
Decorator to associate a feature file with a model, interface, or namespace
0 commit comments