From 2b8e8a2fcc4a1c12c4eaf10b8502a5c909fa78c1 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 23 Dec 2025 13:44:35 +0800 Subject: [PATCH 1/3] Normalize Swagger Model Names and Properties Suffix --- .../2025-10-01-preview/cognitiveservices.json | 87 +++++++++---------- 1 file changed, 40 insertions(+), 47 deletions(-) diff --git a/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json index a51826f99806..98e5d5270b1f 100644 --- a/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json +++ b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json @@ -5532,7 +5532,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/CapabilityHostResource" + "$ref": "#/definitions/CapabilityHost" } }, "default": { @@ -5582,7 +5582,7 @@ "description": "CapabilityHost definition.", "required": true, "schema": { - "$ref": "#/definitions/CapabilityHostResource" + "$ref": "#/definitions/CapabilityHost" } } ], @@ -5590,13 +5590,13 @@ "200": { "description": "Create or update request is successful.", "schema": { - "$ref": "#/definitions/CapabilityHostResource" + "$ref": "#/definitions/CapabilityHost" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/CapabilityHostResource" + "$ref": "#/definitions/CapabilityHost" }, "headers": { "x-ms-async-operation-timeout": { @@ -5784,7 +5784,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/ProjectCapabilityHostResource" + "$ref": "#/definitions/ProjectCapabilityHost" } }, "default": { @@ -5837,7 +5837,7 @@ "description": "CapabilityHost definition.", "required": true, "schema": { - "$ref": "#/definitions/ProjectCapabilityHostResource" + "$ref": "#/definitions/ProjectCapabilityHost" } } ], @@ -5845,13 +5845,13 @@ "200": { "description": "Create or update request is successful.", "schema": { - "$ref": "#/definitions/ProjectCapabilityHostResource" + "$ref": "#/definitions/ProjectCapabilityHost" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/ProjectCapabilityHostResource" + "$ref": "#/definitions/ProjectCapabilityHost" }, "headers": { "x-ms-async-operation-timeout": { @@ -6919,7 +6919,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/AgentApplicationResource" + "$ref": "#/definitions/AgentApplication" } }, "default": { @@ -6977,7 +6977,7 @@ "description": "Agent Application definition object.", "required": true, "schema": { - "$ref": "#/definitions/AgentApplicationResource" + "$ref": "#/definitions/AgentApplication" } } ], @@ -6985,13 +6985,13 @@ "200": { "description": "Create or update request is successful.", "schema": { - "$ref": "#/definitions/AgentApplicationResource" + "$ref": "#/definitions/AgentApplication" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/AgentApplicationResource" + "$ref": "#/definitions/AgentApplication" }, "headers": { "x-ms-async-operation-timeout": { @@ -7374,7 +7374,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/AgentDeploymentResource" + "$ref": "#/definitions/AgentDeployment" } }, "default": { @@ -7430,7 +7430,7 @@ "description": "Agent Deployment definition object.", "required": true, "schema": { - "$ref": "#/definitions/AgentDeploymentResource" + "$ref": "#/definitions/AgentDeployment" } } ], @@ -7438,13 +7438,13 @@ "200": { "description": "Create or update request is successful.", "schema": { - "$ref": "#/definitions/AgentDeploymentResource" + "$ref": "#/definitions/AgentDeployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/AgentDeploymentResource" + "$ref": "#/definitions/AgentDeployment" }, "headers": { "x-ms-async-operation-timeout": { @@ -11942,7 +11942,7 @@ "description": "An array of objects of type Capability Host.", "type": "array", "items": { - "$ref": "#/definitions/CapabilityHostResource" + "$ref": "#/definitions/CapabilityHost" }, "x-nullable": true } @@ -11962,14 +11962,14 @@ "description": "An array of objects of type Project Capability Host.", "type": "array", "items": { - "$ref": "#/definitions/ProjectCapabilityHostResource" + "$ref": "#/definitions/ProjectCapabilityHost" }, "x-nullable": true } }, "additionalProperties": false }, - "CapabilityHostResource": { + "CapabilityHost": { "description": "Azure Resource Manager resource envelope.", "required": [ "properties" @@ -11983,13 +11983,12 @@ "properties": { "properties": { "description": "[Required] Additional attributes of the entity.", - "$ref": "#/definitions/CapabilityHost" + "$ref": "#/definitions/CapabilityHostProperties" } }, - "x-ms-client-name": "CapabilityHost", "additionalProperties": false }, - "CapabilityHost": { + "CapabilityHostProperties": { "type": "object", "allOf": [ { @@ -12051,7 +12050,6 @@ "description": "Whether public hosting environment is enabled for the capability host" } }, - "x-ms-client-name": "CapabilityHostProperties", "additionalProperties": false }, "CapabilityHostProvisioningState": { @@ -12108,7 +12106,7 @@ }, "additionalProperties": false }, - "ProjectCapabilityHostResource": { + "ProjectCapabilityHost": { "description": "Azure Resource Manager resource envelope for Project CapabilityHost.", "required": [ "properties" @@ -12122,13 +12120,12 @@ "properties": { "properties": { "description": "[Required] Additional attributes of the entity.", - "$ref": "#/definitions/ProjectCapabilityHost" + "$ref": "#/definitions/ProjectCapabilityHostProperties" } }, - "x-ms-client-name": "ProjectCapabilityHost", "additionalProperties": false }, - "ProjectCapabilityHost": { + "ProjectCapabilityHostProperties": { "type": "object", "properties": { "aiServicesConnections": { @@ -12172,7 +12169,6 @@ ] } }, - "x-ms-client-name": "ProjectCapabilityHostProperties", "additionalProperties": false }, "ResourceBase": { @@ -12774,7 +12770,7 @@ "modelAsString": true } }, - "AgentApplicationResource": { + "AgentApplication": { "description": "Agent Application resource", "required": [ "properties" @@ -12788,10 +12784,9 @@ "properties": { "properties": { "description": "[Required] Additional attributes of the entity.", - "$ref": "#/definitions/AgenticApplication" + "$ref": "#/definitions/AgenticApplicationProperties" } }, - "x-ms-client-name": "AgentApplication", "additionalProperties": false }, "AgentApplicationResourceArmPaginatedResult": { @@ -12807,14 +12802,14 @@ "description": "An array of objects of type Agent Application.", "type": "array", "items": { - "$ref": "#/definitions/AgentApplicationResource" + "$ref": "#/definitions/AgentApplication" }, "x-nullable": true } }, "additionalProperties": false }, - "AgentReferenceResource": { + "AgentReference": { "description": "Agent Reference resource", "required": [ "properties" @@ -12828,10 +12823,9 @@ "properties": { "properties": { "description": "[Required] Additional attributes of the entity.", - "$ref": "#/definitions/AgentReference" + "$ref": "#/definitions/AgentReferenceProperties" } }, - "x-ms-client-name": "AgentReference", "additionalProperties": false }, "AgentReferenceResourceArmPaginatedResult": { @@ -12847,14 +12841,14 @@ "description": "An array of objects of type Agent Reference.", "type": "array", "items": { - "$ref": "#/definitions/AgentReferenceResource" + "$ref": "#/definitions/AgentReference" }, "x-nullable": true } }, "additionalProperties": false }, - "AgentDeploymentResource": { + "AgentDeployment": { "description": "Agent Deployment resource", "required": [ "properties" @@ -12868,10 +12862,9 @@ "properties": { "properties": { "description": "[Required] Additional attributes of the entity.", - "$ref": "#/definitions/AgentDeployment" + "$ref": "#/definitions/AgentDeploymentProperties" } }, - "x-ms-client-name": "AgentDeployment", "additionalProperties": false }, "AgentDeploymentResourceArmPaginatedResult": { @@ -12887,14 +12880,14 @@ "description": "An array of objects of type Agent Deployment.", "type": "array", "items": { - "$ref": "#/definitions/AgentDeploymentResource" + "$ref": "#/definitions/AgentDeployment" }, "x-nullable": true } }, "additionalProperties": false }, - "AgenticApplication": { + "AgenticApplicationProperties": { "description": "Resource type representing an agentic application as a management construct.", "type": "object", "allOf": [ @@ -12917,7 +12910,7 @@ "description": "The list of agent definitions comprising this application, returned as references to the objects under the parent project; use this to obtain a flat list of all agent-version pairs represented by this application.", "type": "array", "items": { - "$ref": "#/definitions/AgentReference" + "$ref": "#/definitions/AgentReferenceProperties" }, "x-nullable": true }, @@ -12954,7 +12947,7 @@ }, "additionalProperties": false }, - "AgentDeployment": { + "AgentDeploymentProperties": { "description": "Type representing an agent deployment as a management construct.", "type": "object", "discriminator": "deploymentType", @@ -13022,7 +13015,7 @@ "x-ms-discriminator-value": "Managed", "allOf": [ { - "$ref": "#/definitions/AgentDeployment" + "$ref": "#/definitions/AgentDeploymentProperties" } ], "additionalProperties": false @@ -13033,7 +13026,7 @@ "x-ms-discriminator-value": "Hosted", "allOf": [ { - "$ref": "#/definitions/AgentDeployment" + "$ref": "#/definitions/AgentDeploymentProperties" } ], "properties": { @@ -13052,7 +13045,7 @@ }, "additionalProperties": false }, - "AgentReference": { + "AgentReferenceProperties": { "description": "Type modeling a reference to a version of an agent definition.", "type": "object", "properties": { @@ -13074,7 +13067,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/AgentReference" + "$ref": "#/definitions/AgentReferenceProperties" } ], "properties": { From 1d8b6fa97aeffa78d0d3f9fe291317259d6ff679 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 23 Dec 2025 13:48:56 +0800 Subject: [PATCH 2/3] Update RaiBlocklistItemsBulkDeleteRequest to an Array of Strings --- .../preview/2025-10-01-preview/cognitiveservices.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json index 98e5d5270b1f..58d5b8bf8534 100644 --- a/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json +++ b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json @@ -10308,7 +10308,7 @@ }, "RaiBlocklistItemsBulkDeleteRequest": { "description": "The list of Cognitive Services RaiBlocklist Items Names.", - "type": "object", + "type": "array", "items": { "type": "string" } From cae36abe5e2689cd8b50eb12b3e430f61b579cd0 Mon Sep 17 00:00:00 2001 From: Xinni Tong Date: Thu, 5 Feb 2026 14:24:21 +0800 Subject: [PATCH 3/3] Update RaiBlocklistItemsBulkDeleteRequest to object type --- .../preview/2025-10-01-preview/cognitiveservices.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json index 58d5b8bf8534..98e5d5270b1f 100644 --- a/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json +++ b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json @@ -10308,7 +10308,7 @@ }, "RaiBlocklistItemsBulkDeleteRequest": { "description": "The list of Cognitive Services RaiBlocklist Items Names.", - "type": "array", + "type": "object", "items": { "type": "string" }