resource-name-pattern
@azure-tools/typespec-azure-resource-manager/arm-resource-name-patternResource names must specify a pattern string using @pattern, providing a regular expression that the name must match.
❌ Incorrect
Section titled “❌ Incorrect”model Employee is ProxyResource<{}> { @key("employeeName") @path @segment("employees") name: string;}✅ Correct
Section titled “✅ Correct”model Employee is ProxyResource<{}> { ...ResourceNameParameter<Employee>;}Reviewer advice
Section titled “Reviewer advice”Impacts the API: this corresponds to the LintDiff rule ResourceNameRestriction and causes an RPC violation. Ask the author to use @pattern or the ResourceNameParameter template with a pattern string or union type. Do not accept a suppression unless it is needed to match existing APIs.