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
default: `Missing identifying properties of objects in the array item, please add @extension("x-ms-identifiers", [<prop>]) to specify it. If there are no appropriate identifying properties, please add @extension("x-ms-identifiers",[]).`,
notArray: paramMessage`Value passed to @extension("x-ms-identifiers",...) was a "${"valueType"}". Pass an array of property name.`,
suggests the use of @extension("x-ms-identifiers", [<prop>]), however the actual decorator should be @OpenAPI.extension("x-ms-identifiers", [<prop>])
… `missing-x-ms-identifiers` linter warning (#605)
Fixes#604 and also resolves a syntax error in the documentation for
`missing-x-ms-identifiers`.
---------
Signed-off-by: Michael Shen <[email protected]>
Describe the bug
typespec-azure/packages/typespec-azure-resource-manager/src/rules/missing-x-ms-identifiers.ts
Lines 19 to 20 in 94c846a
@extension("x-ms-identifiers", [<prop>])
, however the actual decorator should be@OpenAPI.extension("x-ms-identifiers", [<prop>])
https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/missing-x-ms-identifiers
Reproduction
https://azure.github.io/typespec-azure/playground?c=aW1wb3J0ICJAdHlwZXNwZWMvcmVzdCI7CtIZaHR0cMwZYXp1cmUtdG9vbHMvyCUtxhVjb3Jl3yvIK3Jlc291cmNlLW1hbmFnZXIiOwoKdXNpbmcgVHlwZVNwZWMuUmVzdDvQFUh0dHDIFUHESi5Db3JlzhJSx1xNxls7CgpAc2VydmljZSgiV2lkZ2V0xxoiKQpuYW1lc3BhY2UgQ29udG9zby7NIjsKCm1vZGVsIEFkZHJlc3MgewogIGNpdHk6IHN0cmluZzsKIMQKZWV0yhJ9yDXoAIlQcm9wZXJ0aWXGQGFycmF5OshTW10KfQo%3D&e=%40azure-tools%2Ftypespec-autorest&options=%7B%7D
Checklist
The text was updated successfully, but these errors were encountered: