From 17ad3db25964725083517f2a35236399b303eaba Mon Sep 17 00:00:00 2001 From: Walter Featherstone Date: Sun, 10 Sep 2017 14:31:43 +0100 Subject: [PATCH] Changes proposed in bug 10 - SubscriptionLinkList should include an array of the attribute Subscription Change-Id: I888613c50354aabc98314fbd0b18c35377b0d6ba Signed-off-by: Walter Featherstone --- RniAPI.json | 22 +++++----------------- RniAPI.yaml | 16 ++++------------ 2 files changed, 9 insertions(+), 29 deletions(-) diff --git a/RniAPI.json b/RniAPI.json index c1fc76f..494fc87 100644 --- a/RniAPI.json +++ b/RniAPI.json @@ -6025,10 +6025,13 @@ ], "properties": { "_links": { - "$ref": "#/definitions/LinkList" + "$ref": "#/definitions/Link" }, "subscription": { - "$ref": "#/definitions/Subscription" + "type": "array", + "items": { + "$ref": "#/definitions/Subscription" + } } } }, @@ -6373,21 +6376,6 @@ }, "description": "List of hyperlinks related to the resource" }, - "LinkList": { - "type": "object", - "required": [ - "self" - ], - "properties": { - "self": { - "$ref": "#/definitions/LinkType" - }, - "subscription": { - "$ref": "#/definitions/Subscription" - } - }, - "description": "List of hyperlinks related to the resource" - }, "LinkType": { "description": "URI referring to a resource", "type": "string", diff --git a/RniAPI.yaml b/RniAPI.yaml index 3d417f8..fecd626 100644 --- a/RniAPI.yaml +++ b/RniAPI.yaml @@ -4164,9 +4164,11 @@ definitions: - _links properties: _links: - $ref: '#/definitions/LinkList' + $ref: '#/definitions/Link' subscription: - $ref: '#/definitions/Subscription' + type: array + items: + $ref: '#/definitions/Subscription' MeasRepUeSubscriptionPost: type: object required: @@ -4400,16 +4402,6 @@ definitions: self: $ref: '#/definitions/LinkType' description: List of hyperlinks related to the resource - LinkList: - type: object - required: - - self - properties: - self: - $ref: '#/definitions/LinkType' - subscription: - $ref: '#/definitions/Subscription' - description: List of hyperlinks related to the resource LinkType: description: URI referring to a resource type: string -- GitLab