From fd09744950be774c31b7196a048e2a780c8a4d54 Mon Sep 17 00:00:00 2001 From: featherstone Date: Mon, 28 Jan 2019 16:11:12 +0000 Subject: [PATCH] Attributes in URI are just string --- Mp1.json | 22 ++++++++++------------ Mp1.yaml | 9 +++------ parameters/Path.AppInstanceId.yaml | 3 +-- parameters/Path.DnsRuleId.yaml | 3 +-- parameters/Path.ServiceId.yaml | 3 +-- parameters/Path.SubscriptionId.yaml | 3 +-- parameters/Path.SubscriptionType.yaml | 4 +++- parameters/Path.TrafficRuleId.yaml | 3 +-- 8 files changed, 21 insertions(+), 29 deletions(-) diff --git a/Mp1.json b/Mp1.json index e6504cc..a3583e3 100644 --- a/Mp1.json +++ b/Mp1.json @@ -76,24 +76,21 @@ "description": "Represents a mobile edge application instance. Note that the appInstanceId is allocated by the mobile edge platform manager.", "in": "path", "required": true, - "type": "string", - "format": "uri" + "type": "string" }, "Path.DnsRuleId": { "name": "dnsRuleId", "description": "Represents a DNS rule.", "in": "path", "required": true, - "type": "string", - "format": "uri" + "type": "string" }, "Path.SubscriptionId": { "name": "subscriptionId", "description": "Represents a subscription to the notifications from the mobile edge platform.", "in": "path", "required": true, - "type": "string", - "format": "uri" + "type": "string" }, "Path.SubscriptionType": { "name": "subscriptionType", @@ -101,23 +98,24 @@ "in": "path", "required": true, "type": "string", - "format": "uri" + "enum": [ + "AppTerminationNotificationSubscription", + "SerAvailabilityNotificationSubscription" + ] }, "Path.ServiceId": { "name": "serviceId", "description": "Represents a mobile edge service instance.", "in": "path", "required": true, - "type": "string", - "format": "uri" + "type": "string" }, "Path.TrafficRuleId": { "name": "trafficRuleId", "description": "Represents a traffic rule.", "in": "path", "required": true, - "type": "string", - "format": "uri" + "type": "string" }, "Query.Ser_category_id": { "name": "ser_category_id", @@ -2653,4 +2651,4 @@ } } } -} +} \ No newline at end of file diff --git a/Mp1.yaml b/Mp1.yaml index 4b447a7..dea0f47 100644 --- a/Mp1.yaml +++ b/Mp1.yaml @@ -69,14 +69,12 @@ parameters: in: path required: true type: string - format: uri Path.DnsRuleId: name: dnsRuleId description: Represents a DNS rule. in: path required: true type: string - format: uri Path.SubscriptionId: name: subscriptionId description: >- @@ -85,7 +83,6 @@ parameters: in: path required: true type: string - format: uri Path.SubscriptionType: name: subscriptionType description: >- @@ -94,21 +91,21 @@ parameters: in: path required: true type: string - format: uri + enum: + - AppTerminationNotificationSubscription + - SerAvailabilityNotificationSubscription Path.ServiceId: name: serviceId description: Represents a mobile edge service instance. in: path required: true type: string - format: uri Path.TrafficRuleId: name: trafficRuleId description: Represents a traffic rule. in: path required: true type: string - format: uri Query.Ser_category_id: name: ser_category_id description: >- diff --git a/parameters/Path.AppInstanceId.yaml b/parameters/Path.AppInstanceId.yaml index a291620..81c91ce 100644 --- a/parameters/Path.AppInstanceId.yaml +++ b/parameters/Path.AppInstanceId.yaml @@ -2,5 +2,4 @@ name: appInstanceId description: Represents a mobile edge application instance. Note that the appInstanceId is allocated by the mobile edge platform manager. in: path required: true -type: string -format: uri \ No newline at end of file +type: string \ No newline at end of file diff --git a/parameters/Path.DnsRuleId.yaml b/parameters/Path.DnsRuleId.yaml index 753e572..980479f 100644 --- a/parameters/Path.DnsRuleId.yaml +++ b/parameters/Path.DnsRuleId.yaml @@ -2,5 +2,4 @@ name: dnsRuleId description: Represents a DNS rule. in: path required: true -type: string -format: uri \ No newline at end of file +type: string \ No newline at end of file diff --git a/parameters/Path.ServiceId.yaml b/parameters/Path.ServiceId.yaml index fd7e41e..94d038d 100644 --- a/parameters/Path.ServiceId.yaml +++ b/parameters/Path.ServiceId.yaml @@ -2,5 +2,4 @@ name: serviceId description: Represents a mobile edge service instance. in: path required: true -type: string -format: uri \ No newline at end of file +type: string \ No newline at end of file diff --git a/parameters/Path.SubscriptionId.yaml b/parameters/Path.SubscriptionId.yaml index 5b58d0f..93e5191 100644 --- a/parameters/Path.SubscriptionId.yaml +++ b/parameters/Path.SubscriptionId.yaml @@ -2,5 +2,4 @@ name: subscriptionId description: Represents a subscription to the notifications from the mobile edge platform. in: path required: true -type: string -format: uri \ No newline at end of file +type: string \ No newline at end of file diff --git a/parameters/Path.SubscriptionType.yaml b/parameters/Path.SubscriptionType.yaml index aa54114..d8a559f 100644 --- a/parameters/Path.SubscriptionType.yaml +++ b/parameters/Path.SubscriptionType.yaml @@ -3,4 +3,6 @@ description: Represents a subscription type to the notifications from the mobile in: path required: true type: string -format: uri \ No newline at end of file +enum: +- SerAvailabilityNotificationSubscription +- AppTerminationNotificationSubscription \ No newline at end of file diff --git a/parameters/Path.TrafficRuleId.yaml b/parameters/Path.TrafficRuleId.yaml index 1e0a400..ffaeab6 100644 --- a/parameters/Path.TrafficRuleId.yaml +++ b/parameters/Path.TrafficRuleId.yaml @@ -2,5 +2,4 @@ name: trafficRuleId description: Represents a traffic rule. in: path required: true -type: string -format: uri \ No newline at end of file +type: string \ No newline at end of file -- GitLab