missing-x-ms-identifiers
@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiersArray properties should describe their identifying properties with x-ms-identifiers. Decorate the property with @OpenAPI.extension(“x-ms-identifiers”, #[id-prop]) where “id-prop” is a list of the names of identifying properties in the item type.
Identifiers let downstream OpenAPI and SDK tooling correlate items in array-valued model properties.
Impact
Section titled “Impact”- Area: API
An old-pattern warning with no real runtime impact.
LintDiff Equivalent
Section titled “LintDiff Equivalent”This rule corresponds to the LintDiff rule XmsIdentifierValidation (warning).
❌ Incorrect
Section titled “❌ Incorrect”model Address { city: string; street: string;}
model ResourceProperties { array: Address[];}✅ Correct
Section titled “✅ Correct”model ResourceProperties { @identifiers(#["city", "street"]) array: Address[];}Suppression
Section titled “Suppression”Suppress at will.