arm-resource-action-no-segment
@azure-tools/typespec-azure-resource-manager/arm-resource-action-no-segmentThe @armResourceAction decorator should not be used together with @segment. If you need to rename the action, use @action(...) instead or omit the segment entirely.
❌ Incorrect
Section titled “❌ Incorrect”@armResourceAction(MyResource)@segment("doSomething")@postop doAction(...ApiVersionParameter): void;✅ Correct
Section titled “✅ Correct”@armResourceAction(MyResource)@postop doAction(...ApiVersionParameter): void;✅ Correct (with custom action name)
Section titled “✅ Correct (with custom action name)”@armResourceAction(MyResource)@action("doSomething")@postop doAction(...ApiVersionParameter): void;Reviewer advice
Section titled “Reviewer advice”Impacts the API and generated SDKs: this can indicate the resource action path is modeled incorrectly, though LintDiff partially covers it through PathForResourceAction. Ask the author to use @action for the final path segment with standard resource action templates. Suppress only if the actual emitted path works.