Skip to content

Add missing documentation for linting rules#4001

Open
timotheeguerin wants to merge 8 commits intoAzure:mainfrom
timotheeguerin:arm-linter-rule-docs
Open

Add missing documentation for linting rules#4001
timotheeguerin wants to merge 8 commits intoAzure:mainfrom
timotheeguerin:arm-linter-rule-docs

Conversation

@timotheeguerin
Copy link
Member

No description provided.

@microsoft-github-policy-service microsoft-github-policy-service bot added the lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library label Mar 3, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 3, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-azure-resource-manager@4001

commit: 2d5e545

@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 3, 2026

All changed packages have been documented.

  • @azure-tools/typespec-azure-resource-manager
Show changes

@azure-tools/typespec-azure-resource-manager - internal ✏️

Add documentation missing for linting rules

@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 3, 2026

You can try these changes here

🛝 Playground 🌐 Website

@timotheeguerin timotheeguerin marked this pull request as ready for review March 9, 2026 12:12
@azure-tools/typespec-azure-resource-manager/arm-common-types-version
```

ARM services must specify the ARM common-types version using the `@armCommonTypesVersion` decorator. This decorator should be applied either on the service namespace or on each version enum member.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ARM services must specify the ARM common-types version using the `@armCommonTypesVersion` decorator. This decorator should be applied either on the service namespace or on each version enum member.
ARM services must specify the ARM common-types version using the `@armCommonTypesVersion` decorator. If the same common types version is used across all service versions, this decorator should be applied either on the service namespace. If the common types version is updated in later versions, the decorator should appear on each version enum member.

@azure-tools/typespec-azure-resource-manager/arm-resource-operation
```

Validate ARM Resource operations. All resource operations must be defined inside an interface, include an `api-version` parameter, and use the correct decorator for the HTTP verb.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Validate ARM Resource operations. All resource operations must be defined inside an interface, include an `api-version` parameter, and use the correct decorator for the HTTP verb.
Validate that all ARM Resource operations are defined inside an interface, include an `api-version` parameter, and use the correct decorator for the HTTP verb.

@azure-tools/typespec-azure-resource-manager/empty-updateable-properties
```

Resources with update operations should have updateable properties. The RP-specific properties of the resource (as defined in the `properties` property) should have at least one updateable property. Properties are updateable if they do not have a `@visibility` decorator, or if they include `update` in the `@visibility` decorator arguments.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Resources with update operations should have updateable properties. The RP-specific properties of the resource (as defined in the `properties` property) should have at least one updateable property. Properties are updateable if they do not have a `@visibility` decorator, or if they include `update` in the `@visibility` decorator arguments.
Resources with update operations should have updateable properties. The RP-specific properties of the resource (as defined in the `properties` property) should have at least one updateable property. Properties are updateable if they do not have a `@visibility` decorator, or if they include `Lifecycle.Update` in the `@visibility` decorator arguments.

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

Labels

lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants