Skip to content

missing-x-ms-identifiers

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

Array 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.

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

Array of models must explicity define which keys are used as identifiers using the @identifiers decorator.

model Address {
city: string;
street: string;
}
model ResourceProperties {
array: Address[];
}
model ResourceProperties {
@identifiers(#["city", "street"])
array: Address[];
}