Commit 62dc8425 authored by Walter Featherstone's avatar Walter Featherstone
Browse files

oAuth2Info is not a required parameter & used oneOf for endpoint

parent f102112e
...@@ -750,21 +750,6 @@ ...@@ -750,21 +750,6 @@
"$ref": "#/components/schemas/EndPointInfo.Uri" "$ref": "#/components/schemas/EndPointInfo.Uri"
} }
}, },
"EndPointInfo": {
"description": "This type represents information about a transport endpoint",
"type": "object",
"properties": {
"uris": {
"$ref": "#/components/schemas/EndPointInfo.Uris"
},
"addresses": {
"$ref": "#/components/schemas/EndPointInfo.Addresses"
},
"alternative": {
"$ref": "#/components/schemas/EndPointInfo.Alternative"
}
}
},
"LinkType": { "LinkType": {
"description": "This type represents a type of link and may be referenced from data structures", "description": "This type represents a type of link and may be referenced from data structures",
"type": "object", "type": "object",
...@@ -911,9 +896,6 @@ ...@@ -911,9 +896,6 @@
"SecurityInfo": { "SecurityInfo": {
"description": "This type represents security information related to a transport", "description": "This type represents security information related to a transport",
"type": "object", "type": "object",
"required": [
"oAuth2Info"
],
"properties": { "properties": {
"oAuth2Info": { "oAuth2Info": {
"$ref": "#/components/schemas/SecurityInfo.OAuth2Info" "$ref": "#/components/schemas/SecurityInfo.OAuth2Info"
...@@ -1518,7 +1500,19 @@ ...@@ -1518,7 +1500,19 @@
"$ref": "#/components/schemas/TransportInfo.Version" "$ref": "#/components/schemas/TransportInfo.Version"
}, },
"endpoint": { "endpoint": {
"$ref": "#/components/schemas/EndPointInfo" "description": "This type represents information about a transport endpoint",
"type": "object",
"oneOf": [
{
"$ref": "#/components/schemas/EndPointInfo.Uris"
},
{
"$ref": "#/components/schemas/EndPointInfo.Addresses"
},
{
"$ref": "#/components/schemas/EndPointInfo.Alternative"
}
]
}, },
"security": { "security": {
"$ref": "#/components/schemas/SecurityInfo" "$ref": "#/components/schemas/SecurityInfo"
...@@ -2227,12 +2221,6 @@ ...@@ -2227,12 +2221,6 @@
"endpoint": { "endpoint": {
"uris": [ "uris": [
"/meMp1/service/EntryPoint" "/meMp1/service/EntryPoint"
],
"addresses": [
{
"host": "192.0.2.0",
"port": 8080
}
] ]
}, },
"security": { "security": {
...@@ -2267,9 +2255,6 @@ ...@@ -2267,9 +2255,6 @@
"protocol": "HTTP", "protocol": "HTTP",
"version": "2.0", "version": "2.0",
"endpoint": { "endpoint": {
"uris": [
"/meMp1/service/EntryPoint"
],
"addresses": [ "addresses": [
{ {
"host": "192.0.2.0", "host": "192.0.2.0",
......
...@@ -695,8 +695,6 @@ components: ...@@ -695,8 +695,6 @@ components:
SecurityInfo: SecurityInfo:
description: This type represents security information related to a transport description: This type represents security information related to a transport
type: object type: object
required:
- oAuth2Info
properties: properties:
oAuth2Info: oAuth2Info:
$ref: '#/components/schemas/SecurityInfo.OAuth2Info' $ref: '#/components/schemas/SecurityInfo.OAuth2Info'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment