Commit c6b25b4b authored by Walter Featherstone's avatar Walter Featherstone

correct used oneOf for endpoint

parent dba74484
......@@ -728,14 +728,31 @@
},
"EndPointInfo.Addresses": {
"description": "Entry point information of the service as one or more pairs of IP address and port",
"type": "array",
"items": {
"$ref": "#/components/schemas/EndPointInfo.Address"
"type": "object",
"required": [
"addresses"
],
"properties": {
"addresses": {
"type": "array",
"minItems": 0,
"items": {
"$ref": "#/components/schemas/EndPointInfo.Address"
}
}
}
},
"EndPointInfo.Alternative": {
"description": "Entry point information of the service in a format defined by an implementation, or in an external specification.",
"type": "object"
"type": "object",
"required": [
"alternative"
],
"properties": {
"alternative": {
"type": "object"
}
}
},
"EndPointInfo.Uri": {
"description": "Entry point information of the service",
......@@ -745,9 +762,18 @@
},
"EndPointInfo.Uris": {
"description": "Entry point information of the service as string, formatted according to URI syntax",
"type": "array",
"items": {
"$ref": "#/components/schemas/EndPointInfo.Uri"
"type": "object",
"required": [
"uris"
],
"properties": {
"uris": {
"type": "array",
"minItems": 0,
"items": {
"$ref": "#/components/schemas/EndPointInfo.Uri"
}
}
}
},
"LinkType": {
......
......@@ -552,14 +552,25 @@ components:
description: >-
Entry point information of the service as one or more pairs of IP
address and port
type: array
items:
$ref: '#/components/schemas/EndPointInfo.Address'
type: object
required:
- addresses
properties:
addresses:
type: array
minItems: 0
items:
$ref: '#/components/schemas/EndPointInfo.Address'
EndPointInfo.Alternative:
description: >-
Entry point information of the service in a format defined by an
implementation, or in an external specification.
type: object
required:
- alternative
properties:
alternative:
type: object
EndPointInfo.Uri:
description: Entry point information of the service
type: string
......@@ -569,9 +580,15 @@ components:
description: >-
Entry point information of the service as string, formatted according to
URI syntax
type: array
items:
$ref: '#/components/schemas/EndPointInfo.Uri'
type: object
required:
- uris
properties:
uris:
type: array
minItems: 0
items:
$ref: '#/components/schemas/EndPointInfo.Uri'
LinkType:
description: This type represents a type of link and may be referenced from data structures
type: object
......
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