From e28ab5b821842a0abe706db47a4ea9096000cf80 Mon Sep 17 00:00:00 2001 From: Tianxiang Chen Date: Tue, 22 Feb 2022 14:59:48 +0800 Subject: [PATCH] fix swaggers --- .../2020-11-01-preview/appplatform.json | 18 +++++++++---- .../preview/2021-06-01-preview/signalr.json | 26 ++++++++++++++----- 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2020-11-01-preview/appplatform.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2020-11-01-preview/appplatform.json index a3ccb1ea500f..20021fcb7649 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2020-11-01-preview/appplatform.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2020-11-01-preview/appplatform.json @@ -2782,7 +2782,8 @@ "type": "string" } } - } + }, + "required": ["location"] }, "Resource": { "description": "The core properties of ARM resources.", @@ -3545,11 +3546,13 @@ "description": "Properties of the Binding resource", "x-ms-client-flatten": false } - } + }, + "required": ["properties"] }, "BindingResourceProperties": { "description": "Binding resource properties payload", "type": "object", + "required": ["resourceId", "bindingParameters", "key"], "properties": { "resourceName": { "description": "The name of the bound resource", @@ -3625,7 +3628,8 @@ "description": "Properties of the certificate resource payload.", "x-ms-client-flatten": false } - } + }, + "required": ["properties"] }, "CertificateProperties": { "description": "Certificate resource payload.", @@ -3716,7 +3720,8 @@ "properties": { "type": { "description": "Type of the resource to check name availability", - "type": "string" + "type": "string", + "enum": ["Microsoft.AppPlatform/Spring"] }, "name": { "description": "Name to be checked", @@ -3841,11 +3846,13 @@ "$ref": "#/definitions/Sku", "description": "Sku of the Deployment resource" } - } + }, + "required": ["properties"] }, "DeploymentResourceProperties": { "description": "Deployment resource properties payload", "type": "object", + "required": ["source"], "properties": { "source": { "$ref": "#/definitions/UserSourceInfo", @@ -3918,6 +3925,7 @@ "UserSourceInfo": { "description": "Source information for a deployment", "type": "object", + "required": ["type", "relativePath"], "properties": { "type": { "description": "Type of the source uploaded", diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2021-06-01-preview/signalr.json b/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2021-06-01-preview/signalr.json index 52912cfbf72e..610fb842537e 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2021-06-01-preview/signalr.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2021-06-01-preview/signalr.json @@ -1221,7 +1221,8 @@ "properties": { "type": { "description": "The resource type. Can be \"Microsoft.SignalRService/SignalR\" or \"Microsoft.SignalRService/webPubSub\"", - "type": "string" + "type": "string", + "enum": ["Microsoft.SignalRService/SignalR", "Microsoft.SignalRService/webPubSub"] }, "name": { "description": "The resource name to validate. e.g.\"my-resource-name\"", @@ -1372,7 +1373,8 @@ "description": "Properties of the private endpoint connection", "x-ms-client-flatten": true } - } + }, + "required": ["properties"] }, "PrivateEndpointConnectionList": { "description": "A list of private endpoint connections", @@ -1408,7 +1410,8 @@ "$ref": "#/definitions/PrivateLinkServiceConnectionState", "description": "Connection state" } - } + }, + "required": ["privateLinkServiceConnectionState"] }, "PrivateLinkResource": { "description": "Private link resource", @@ -1576,7 +1579,11 @@ "properties": { "name": { "description": "The name of the SKU. Required.\r\n\r\nAllowed values: Standard_S1, Free_F1", - "type": "string" + "type": "string", + "enum": [ + "Standard_S1", + "Free_F1" + ] }, "tier": { "$ref": "#/definitions/SignalRSkuTier", @@ -1695,7 +1702,8 @@ "description": "Describes the properties of a Shared Private Link Resource", "x-ms-client-flatten": true } - } + }, + "required": ["properties"] }, "SharedPrivateLinkResourceList": { "description": "A list of shared private link resources", @@ -2006,7 +2014,8 @@ "description": "Metadata pertaining to creation and last modification of the resource.", "readOnly": true } - } + }, + "required": ["sku"] }, "SignalRResourceList": { "description": "Object that includes an array of resources and a possible link for next set.", @@ -2133,7 +2142,10 @@ "type": "string" } } - } + }, + "required": [ + "location" + ] }, "UpstreamAuthSettings": { "description": "Upstream auth settings.",