resource-name-pattern
@azure-tools/typespec-azure-resource-manager/resource-name-pattern
Resource 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>;}