From 94ab19ac4ef0689cac23f9f98b707943681e5595 Mon Sep 17 00:00:00 2001 From: Elian Kraja Date: Mon, 8 Jun 2020 15:12:38 +0200 Subject: [PATCH] Fix on SubscriptionLinkList datamodel --- .../schemas/SubscriptionLink.schema.json | 4 +- .../schemas/SubscriptionLinkList.schema.json | 107 +++++++++--------- 2 files changed, 54 insertions(+), 57 deletions(-) diff --git a/SRV/SRVSUB/schemas/SubscriptionLink.schema.json b/SRV/SRVSUB/schemas/SubscriptionLink.schema.json index e59a52d..08c0b3d 100644 --- a/SRV/SRVSUB/schemas/SubscriptionLink.schema.json +++ b/SRV/SRVSUB/schemas/SubscriptionLink.schema.json @@ -32,7 +32,7 @@ "type": "object", "required": [ "href", - "rel" + "subscriptionType" ], "properties": { "href": { @@ -41,7 +41,7 @@ "format": "uri", "example": "/mecSerMgmtApi/example" }, - "rel": { + "subscriptionType": { "description": "The value shall be se to SerAvailabilityNotificationSubscription.", "type": "string" } diff --git a/SRV/SRVSUB/schemas/SubscriptionLinkList.schema.json b/SRV/SRVSUB/schemas/SubscriptionLinkList.schema.json index 919c646..08c0b3d 100644 --- a/SRV/SRVSUB/schemas/SubscriptionLinkList.schema.json +++ b/SRV/SRVSUB/schemas/SubscriptionLinkList.schema.json @@ -1,57 +1,54 @@ { - "type": "array", - "objects": { - "description": "This type represents a list of links related to currently existing subscriptions for a MEC application instance. This information is returned when sending a request to receive current subscriptions.", - "type": "object", - "required": [ - "_links" - ], - "properties": { - "_links": { - "description": "Self-referring URI.", - "type": "object", - "required": [ - "self" - ], - "properties": { - "self": { - "description": "This type represents a type of link and may be referenced from data structures", - "type": "object", - "properties": { - "href": { - "description": "URI referring to a resource", - "type": "string", - "format": "uri", - "example": "/mecSerMgmtApi/example" - } - } - }, - "subscriptions": { - "description": "The MEC application instance's subscriptions", - "type": "array", - "items": { - "description": "A link to a subscription.", - "type": "object", - "required": [ - "href", - "rel" - ], - "properties": { - "href": { - "description": "URI referring to a resource", - "type": "string", - "format": "uri", - "example": "/mecSerMgmtApi/example" - }, - "rel": { - "description": "The value shall be se to SerAvailabilityNotificationSubscription.", - "type": "string" - } - } - } - } - } - } - } - } + "description": "This type represents a list of links related to currently existing subscriptions for a MEC application instance. This information is returned when sending a request to receive current subscriptions.", + "type": "object", + "required": [ + "_links" + ], + "properties": { + "_links": { + "description": "Self-referring URI.", + "type": "object", + "required": [ + "self" + ], + "properties": { + "self": { + "description": "This type represents a type of link and may be referenced from data structures", + "type": "object", + "properties": { + "href": { + "description": "URI referring to a resource", + "type": "string", + "format": "uri", + "example": "/mecSerMgmtApi/example" + } + } + }, + "subscriptions": { + "description": "The MEC application instance's subscriptions", + "type": "array", + "items": { + "description": "A link to a subscription.", + "type": "object", + "required": [ + "href", + "subscriptionType" + ], + "properties": { + "href": { + "description": "URI referring to a resource", + "type": "string", + "format": "uri", + "example": "/mecSerMgmtApi/example" + }, + "subscriptionType": { + "description": "The value shall be se to SerAvailabilityNotificationSubscription.", + "type": "string" + } + } + } + } + } + } + } } \ No newline at end of file -- GitLab