From eb89dbad45530286ef25594fdfd6ae6b130ec339 Mon Sep 17 00:00:00 2001 From: Ashraf Hamad Date: Mon, 8 Mar 2021 21:12:30 -0800 Subject: [PATCH] EventGrid: Fix remaining swagger correctness issues (#13242) * fix example * Fix multiple linter and swagger correctness/completeness issues for latest preview and stable api version * Fix format * fix examples * fix validation model errors * fix validation model errors * fix example * remove default * revert 2020-06 changes * fix eventgrid swagger file with multiple linter and correctness fixes * fix 2020-06-01 stable swagger * fix 2020-06-01 stable swagger -- part 2 * fix format * fix prettier check * additional format fix * fix examples and wrong response code * fix validator * fix validator * fix remaining swagger correctness issues * fix end of file * fix lintter Co-authored-by: Ashraf Hamad --- .../preview/2020-10-15-preview/EventGrid.json | 11 +++++++---- .../stable/2020-06-01/EventGrid.json | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2020-10-15-preview/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2020-10-15-preview/EventGrid.json index 36956f7dd4fd..04ca2960b7c1 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2020-10-15-preview/EventGrid.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2020-10-15-preview/EventGrid.json @@ -6048,6 +6048,7 @@ "Failed" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "DomainTopicProvisioningState", "modelAsString": true @@ -6067,6 +6068,7 @@ "properties": { "$ref": "#/definitions/DomainTopicProperties", "description": "Properties of the Domain Topic.", + "readOnly": true, "x-ms-client-flatten": true }, "systemData": { @@ -6078,18 +6080,18 @@ } }, "DomainTopicsListResult": { - "description": "Result of the List Domain Topics operation", + "description": "Result of the List Domain Topics operation.", "type": "object", "properties": { "value": { - "description": "A collection of Domain Topics", + "description": "A collection of Domain Topics.", "type": "array", "items": { "$ref": "#/definitions/DomainTopic" } }, "nextLink": { - "description": "A link for the next page of domain topics", + "description": "A link for the next page of domain topics.", "type": "string" } } @@ -8073,7 +8075,8 @@ "description": "Identity information for the resource." }, "systemData": { - "description": "The system metadata relating to this resource.", + "description": "The system metadata relating to System Topic resource.", + "type": "object", "readOnly": true, "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json index 28cfb574780c..1d4ce90c5b95 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json @@ -3189,6 +3189,7 @@ "DomainTopicProperties": { "description": "Properties of the Domain Topic.", "type": "object", + "readOnly": true, "properties": { "provisioningState": { "description": "Provisioning state of the domain topic.", @@ -3201,6 +3202,7 @@ "Failed" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "DomainTopicProvisioningState", "modelAsString": true @@ -3220,6 +3222,7 @@ "properties": { "$ref": "#/definitions/DomainTopicProperties", "description": "Properties of the Domain Topic.", + "readOnly": true, "x-ms-client-flatten": true }, "systemData": {