Azure/azure-rest-api-specs

[BUG] RAI Policy content filters array has non-unique x-ms-identifiers

Opened this issue · 1 comments

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2024-04-01-preview/cognitiveservices.json

API Spec version

2024-04-01-preview

Describe the bug

The property is defined as such:

        "contentFilters": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/RaiPolicyContentFilter"
          },
          "x-ms-identifiers": [
            "name"
          ],
          "description": "The list of Content Filters."
        }

That should mean that name is unique and sufficient to uniquely identify a filter. But Azure's own example shows that it's not unique. The combination of name and source probably is?

Expected behavior

x-ms-identifiers contains a combination of properties that uniquely identify content filters.

Actual behavior

x-ms-identifiers contains a property whose values are shared between content filters.

Reproduction Steps

visible in the spec

Environment

No response

@tianxin-ms Please help have a look, thank you.