From c3147761a6a8c50c6444d46b6a77662570767315 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Mon, 29 Jul 2019 01:32:02 -0400 Subject: [PATCH] fix: service-map model validation error (#6754) Add "body" for RESPONSE_BODY_NOT_IN_EXAMPLE error --- .../Machines/Ports/SMMachinesPortsGetGet.json | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/specification/service-map/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/examples/Machines/Ports/SMMachinesPortsGetGet.json b/specification/service-map/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/examples/Machines/Ports/SMMachinesPortsGetGet.json index b8cc1fb22758..9baf92e2f6d6 100644 --- a/specification/service-map/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/examples/Machines/Ports/SMMachinesPortsGetGet.json +++ b/specification/service-map/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/examples/Machines/Ports/SMMachinesPortsGetGet.json @@ -11,22 +11,24 @@ }, "responses": { "200": { - "kind": "port", - "properties": { - "monitoringState": "monitored", - "machine": { - "kind": "ref:machine", - "id": "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-999066c5-38c5-4f2f-9ce0-51d738cdc432", - "type": "Microsoft.OperationalInsights/workspaces/features/machines", - "name": "m-999066c5-38c5-4f2f-9ce0-51d738cdc432" + "body": { + "kind": "port", + "properties": { + "monitoringState": "monitored", + "machine": { + "kind": "ref:machine", + "id": "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-999066c5-38c5-4f2f-9ce0-51d738cdc432", + "type": "Microsoft.OperationalInsights/workspaces/features/machines", + "name": "m-999066c5-38c5-4f2f-9ce0-51d738cdc432" + }, + "displayName": ":8000", + "ipAddress": "192.168.1.1", + "portNumber": 8000 }, - "displayName": ":8000", - "ipAddress": "192.168.1.1", - "portNumber": 8000 - }, - "id": "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-999066c5-38c5-4f2f-9ce0-51d738cdc432/ports/b-c0a80101_8000", - "type": "Microsoft.OperationalInsights/workspaces/features/machines/ports", - "name": "b-c0a80101_8000" + "id": "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-999066c5-38c5-4f2f-9ce0-51d738cdc432/ports/b-c0a80101_8000", + "type": "Microsoft.OperationalInsights/workspaces/features/machines/ports", + "name": "b-c0a80101_8000" + } } } }