Skip to content

missing-x-ms-identifiers

-
@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers

Check that array properties have x-ms-identifiers specified with @OpenAPI.extension

❌ Incorrect

model Address {
city: string;
street: string;
}
model ResourceProperties {
array: Address[];
}

✅ Correct

model ResourceProperties {
@OpenAPI.extension("x-ms-identifiers", ["city", "street"])
array: Address[];
}