From 5ac61d196cb7d1812af981f8026e0c17325cfc77 Mon Sep 17 00:00:00 2001 From: featherstone Date: Fri, 1 Mar 2019 09:54:10 +0000 Subject: [PATCH] host and port are required for an EndPointInfo addresses array instance --- Mp1.json | 22 ++++------------------ Mp1.yaml | 13 +++---------- 2 files changed, 7 insertions(+), 28 deletions(-) diff --git a/Mp1.json b/Mp1.json index 7e19f60..4c82dab 100644 --- a/Mp1.json +++ b/Mp1.json @@ -1067,12 +1067,6 @@ "endpoint": { "uris": [ "/meMp1/service/EntryPoint" - ], - "addresses": [ - { - "host": "192.0.2.0", - "port": 8080 - } ] }, "security": { @@ -1177,9 +1171,6 @@ "protocol": "HTTP", "version": "2.0", "endpoint": { - "uris": [ - "/meMp1/service/EntryPoint" - ], "addresses": [ { "host": "192.0.2.0", @@ -1283,9 +1274,6 @@ "protocol": "HTTP", "version": "2.0", "endpoint": { - "uris": [ - "/meMp1/service/EntryPoint" - ], "addresses": [ { "host": "192.0.2.0", @@ -1389,12 +1377,6 @@ "endpoint": { "uris": [ "/meMp1/service/EntryPoint" - ], - "addresses": [ - { - "host": "192.0.2.0", - "port": 8080 - } ] }, "security": { @@ -1912,6 +1894,10 @@ "EndPointInfo.Address": { "description": "A IP address and port pair", "type": "object", + "required": [ + "host", + "port" + ], "properties": { "host": { "$ref": "#/definitions/EndPointInfo.Address.Host" diff --git a/Mp1.yaml b/Mp1.yaml index 5471791..75519d4 100644 --- a/Mp1.yaml +++ b/Mp1.yaml @@ -775,9 +775,6 @@ paths: endpoint: uris: - '/meMp1/service/EntryPoint' - addresses: - - host: '192.0.2.0' - port: 8080 security: oAuth2Info: grantTypes: 'OAUTH2_CLIENT_CREDENTIALS' @@ -852,8 +849,6 @@ paths: protocol: 'HTTP' version: '2.0' endpoint: - uris: - - '/meMp1/service/EntryPoint' addresses: - host: '192.0.2.0' port: 8080 @@ -926,8 +921,6 @@ paths: protocol: 'HTTP' version: '2.0' endpoint: - uris: - - '/meMp1/service/EntryPoint' addresses: - host: '192.0.2.0' port: 8080 @@ -999,9 +992,6 @@ paths: endpoint: uris: - '/meMp1/service/EntryPoint' - addresses: - - host: '192.0.2.0' - port: 8080 security: oAuth2Info: grantTypes: 'OAUTH2_CLIENT_CREDENTIALS' @@ -1388,6 +1378,9 @@ definitions: EndPointInfo.Address: description: A IP address and port pair type: object + required: + - host + - port properties: host: $ref: '#/definitions/EndPointInfo.Address.Host' -- GitLab