From 1717f076b606a9ea6f0f8392d119bacce84c88e2 Mon Sep 17 00:00:00 2001 From: "M. Rehan Abbasi" Date: Thu, 7 Apr 2022 12:31:47 +0500 Subject: [PATCH] remove items tag on data models with type object --- MEC030_V2XInformationService.json | 78 +++++++++++-------------------- MEC030_V2XInformationService.yaml | 74 +++++++++++++---------------- 2 files changed, 59 insertions(+), 93 deletions(-) diff --git a/MEC030_V2XInformationService.json b/MEC030_V2XInformationService.json index ecb8644..a894213 100644 --- a/MEC030_V2XInformationService.json +++ b/MEC030_V2XInformationService.json @@ -745,16 +745,13 @@ "x-etsi-ref": "6.5.12" }, "Pc5ProvisioningInfo": { - "items": { - "properties": { - "proInfoPc5": { - "$ref": "#/components/schemas/Pc5ProvisioningInfo.proInfoPc5" - }, - "timeStamp": { - "$ref": "#/components/schemas/TimeStamp" - } + "properties": { + "proInfoPc5": { + "$ref": "#/components/schemas/Pc5ProvisioningInfo.proInfoPc5" }, - "type": "object" + "timeStamp": { + "$ref": "#/components/schemas/TimeStamp" + } }, "required": ["proInfoPc5"], "type": "object", @@ -1247,16 +1244,13 @@ }, "SubscriptionLinkList.links": { "description": "List of hyperlinks related to the resource.", - "items": { - "properties": { - "self": { - "$ref": "#/components/schemas/LinkType" - }, - "subscriptions": { - "$ref": "#/components/schemas/SubscriptionLinkList.links.subscriptions" - } + "properties": { + "self": { + "$ref": "#/components/schemas/LinkType" }, - "type": "object" + "subscriptions": { + "$ref": "#/components/schemas/SubscriptionLinkList.links.subscriptions" + } }, "required": ["self"], "type": "object", @@ -1347,7 +1341,7 @@ }, "TransmissionBandwidth.transmissionBandwidth": { "description": "'Numeric value corresponding to the transmission bandwidth expressed in units of resource blocks as follows:\n\n1 = bw6 (6 resource blocks)\n\n2 = bw15 (15 resource blocks)\n\n3 = bw25 (25 resource blocks)\n\n4 = bw50 (50 resource blocks)\n\n5 = bw75 (75 resource blocks)\n\n6 = bw100 (100 resource blocks)'\n", - "enum": ["1", "2", "3", "4", "5", "6"], + "enum": [1, 2, 3, 4, 5, 6], "type": "integer", "x-etsi-mec-cardinality": "1", "x-etsi-mec-origin-type": "Enum" @@ -1395,16 +1389,13 @@ "x-etsi-ref": "6.5.11" }, "UuMbmsProvisioningInfo": { - "items": { - "properties": { - "proInfoUuMbms": { - "$ref": "#/components/schemas/UuMbmsProvisioningInfo.proInfoUuMbms" - }, - "timeStamp": { - "$ref": "#/components/schemas/TimeStamp" - } + "properties": { + "proInfoUuMbms": { + "$ref": "#/components/schemas/UuMbmsProvisioningInfo.proInfoUuMbms" }, - "type": "object" + "timeStamp": { + "$ref": "#/components/schemas/TimeStamp" + } }, "required": ["proInfoUuMbms"], "type": "object", @@ -1465,16 +1456,13 @@ "x-etsi-ref": "6.5.9" }, "UuUnicastProvisioningInfo": { - "items": { - "properties": { - "proInfoUuUnicast": { - "$ref": "#/components/schemas/UuUnicastProvisioningInfo.proInfoUuUnicast" - }, - "timeStamp": { - "$ref": "#/components/schemas/TimeStamp" - } + "properties": { + "proInfoUuUnicast": { + "$ref": "#/components/schemas/UuUnicastProvisioningInfo.proInfoUuUnicast" }, - "type": "object" + "timeStamp": { + "$ref": "#/components/schemas/TimeStamp" + } }, "required": ["proInfoUuUnicast"], "type": "object", @@ -1627,21 +1615,7 @@ }, "msgType": { "description": "Published V2X message type. Its value is defined by the standardization organization indicated by the attribute stdOrganization. See note 2.\n− denm(1): Decentralized Environmental Notification Message (DENM) as specified in ETSI EN 302 637-3,\n− cam(2): Cooperative Awareness Message (CAM) as specified in ETSI EN 302 637-2,\n− poi(3): Point of Interest message as specified in ETSI TS 101 556-1,\n− spatem(4): Signal Phase And Timing (SPAT) message as specified in SAE J2735 and in ETSI TS 103 301,\n− mapem(5): MAP message as specified in SAE J2735 and in ETSI TS 103 301,\n− ivim(6): In Vehicle Information (IVI) message as defined in ISO TS 19321,\n− ev-rsr(7): Electric vehicle recharging spot reservation message, as defined in ETSI TS 101 556-3,\n− tistpgtransaction(8): messages for Tyre Information System (TIS) and Tyre Pressure Gauge (TPG) interoperability, as specified in ETSI TS 101 556-2,\n− srem(9): Traffic light Signal Request Message as specified in ETSI TS 103 301,\n− ssem(10): Traffic Light Signal Request Status Message as specified in ETSI TS 103 301.\n− evcsn(11): Electrical Vehicle Charging Spot Notification message as specified in ETSI TS 101 556-1,\n− saem(12): Services Announcement Extended Message as specified in ETSI TS 102 890-1,\n− rtcmem(13): Radio Technical Commission for Maritime Services (RTCM) Message as specified in ETSI TS 103 301,\n", - "enum": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "enum": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "type": "integer", "x-etsi-mec-cardinality": "1", "x-etsi-mec-origin-type": "Enum" diff --git a/MEC030_V2XInformationService.yaml b/MEC030_V2XInformationService.yaml index d3b555c..4f52edf 100644 --- a/MEC030_V2XInformationService.yaml +++ b/MEC030_V2XInformationService.yaml @@ -1,4 +1,4 @@ -openapi: 3.0.0 +openapi: 3.1.0 info: title: 'ETSI GS MEC 030 V2X Information Service API' version: 2.1.9 @@ -547,16 +547,14 @@ components: type: object x-etsi-ref: 6.5.12 Pc5ProvisioningInfo: - items: - properties: - proInfoPc5: - $ref: '#/components/schemas/Pc5ProvisioningInfo.proInfoPc5' - timeStamp: - # description': Time stamp. - # x-etsi-mec-cardinality': 0..1 - # x-etsi-mec-origin-type': TimeStamp - $ref: '#/components/schemas/TimeStamp' - type: object + properties: + proInfoPc5: + $ref: '#/components/schemas/Pc5ProvisioningInfo.proInfoPc5' + timeStamp: + # description': Time stamp. + # x-etsi-mec-cardinality': 0..1 + # x-etsi-mec-origin-type': TimeStamp + $ref: '#/components/schemas/TimeStamp' required: - proInfoPc5 type: object @@ -1049,16 +1047,14 @@ components: x-etsi-ref: 6.5.7 SubscriptionLinkList.links: description: List of hyperlinks related to the resource. - items: - properties: - self: - # description': URI of this resource. - # x-etsi-mec-cardinality': '1' - # x-etsi-mec-origin-type': LinkType - $ref: '#/components/schemas/LinkType' - subscriptions: - $ref: '#/components/schemas/SubscriptionLinkList.links.subscriptions' - type: object + properties: + self: + # description': URI of this resource. + # x-etsi-mec-cardinality': '1' + # x-etsi-mec-origin-type': LinkType + $ref: '#/components/schemas/LinkType' + subscriptions: + $ref: '#/components/schemas/SubscriptionLinkList.links.subscriptions' required: - self type: object @@ -1209,16 +1205,14 @@ components: type: object x-etsi-ref: 6.5.11 UuMbmsProvisioningInfo: - items: - properties: - proInfoUuMbms: - $ref: '#/components/schemas/UuMbmsProvisioningInfo.proInfoUuMbms' - timeStamp: - # description': Time stamp. - # x-etsi-mec-cardinality': 0..1 - # x-etsi-mec-origin-type': TimeStamp - $ref: '#/components/schemas/TimeStamp' - type: object + properties: + proInfoUuMbms: + $ref: '#/components/schemas/UuMbmsProvisioningInfo.proInfoUuMbms' + timeStamp: + # description': Time stamp. + # x-etsi-mec-cardinality': 0..1 + # x-etsi-mec-origin-type': TimeStamp + $ref: '#/components/schemas/TimeStamp' required: - proInfoUuMbms type: object @@ -1289,16 +1283,14 @@ components: type: object x-etsi-ref: 6.5.9 UuUnicastProvisioningInfo: - items: - properties: - proInfoUuUnicast: - $ref: '#/components/schemas/UuUnicastProvisioningInfo.proInfoUuUnicast' - timeStamp: - # description': Time stamp. - # x-etsi-mec-cardinality': 0..1 - # x-etsi-mec-origin-type': TimeStamp - $ref: '#/components/schemas/TimeStamp' - type: object + properties: + proInfoUuUnicast: + $ref: '#/components/schemas/UuUnicastProvisioningInfo.proInfoUuUnicast' + timeStamp: + # description': Time stamp. + # x-etsi-mec-cardinality': 0..1 + # x-etsi-mec-origin-type': TimeStamp + $ref: '#/components/schemas/TimeStamp' required: - proInfoUuUnicast type: object -- GitLab