From 2db8960dafc6f2ca840d69fa64d258846bee1578 Mon Sep 17 00:00:00 2001
From: reinaortega <miguelangel.reinaortega@etsi.org>
Date: Mon, 11 May 2020 09:19:34 +0200
Subject: [PATCH] XSD v1_7_0 baseline

---
 CDT-commonTypes.xsd       | 20 +++++++++++++++++++-
 CDT-pollingChannel.xsd    |  2 +-
 CDT-responsePrimitive.xsd |  2 +-
 3 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/CDT-commonTypes.xsd b/CDT-commonTypes.xsd
index 8b71dba..6b679a2 100644
--- a/CDT-commonTypes.xsd
+++ b/CDT-commonTypes.xsd
@@ -258,6 +258,14 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 		<list itemType="xs:NCName" />
 	</xs:simpleType>
 
+	<xs:simpleType name="resourceTypeList">
+		<xs:restriction> 
+			<xs:simpleType> 
+				<xs:list itemType="m2m:resourceType" />
+			</xs:simpleType> 	
+			<xs:minLength value="1" /> 
+		</xs:restriction> 
+	</xs:simpleType>
 
 	<!--********************** -->
 	<!-- oneM2M Complex Types -->
@@ -328,7 +336,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 			<xs:element name="expireBefore" type="m2m:timestamp" minOccurs="0" />
 			<xs:element name="expireAfter" type="m2m:timestamp" minOccurs="0" />
 			<xs:element name="labels" type="m2m:labels" minOccurs="0" />
-			<xs:element name="resourceType" type="m2m:resourceType" minOccurs="0" />
+			<xs:element name="resourceType" type="m2m:resourceTypeList" minOccurs="0" />
 			<xs:element name="sizeAbove" type="xs:nonNegativeInteger" minOccurs="0" />
 			<xs:element name="sizeBelow" type="xs:positiveInteger" minOccurs="0" />
 			<xs:element name="contentType" type="m2m:typeOfContent" minOccurs="0" maxOccurs="unbounded" />
@@ -585,6 +593,16 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 			</xs:extension>
 		</xs:complexContent>
 	</xs:complexType>
+	
+	<xs:complexType name="subordinateResource">
+		<xs:complexContent>
+			<xs:extension base="m2m:resource">
+				<xs:sequence>
+					<xs:element name="expirationTime" type="m2m:timestamp" />
+				</xs:sequence>
+			</xs:extension>
+		</xs:complexContent>
+	</xs:complexType>
 
 	<xs:complexType name="announcedSubordinateResource">
 		<xs:complexContent>
diff --git a/CDT-pollingChannel.xsd b/CDT-pollingChannel.xsd
index 59264b0..dd6b498 100644
--- a/CDT-pollingChannel.xsd
+++ b/CDT-pollingChannel.xsd
@@ -34,7 +34,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 		<xs:complexType>
 			<xs:complexContent>
 				<!-- Inherit common attributes -->
-				<xs:extension base="m2m:regularResource">
+				<xs:extension base="m2m:subordinateResource">
 					<xs:sequence>
 						<!-- No Resource Specific Attributes -->
 
diff --git a/CDT-responsePrimitive.xsd b/CDT-responsePrimitive.xsd
index 9bcbd03..92169ee 100644
--- a/CDT-responsePrimitive.xsd
+++ b/CDT-responsePrimitive.xsd
@@ -155,7 +155,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
         <xs:element ref="m2m:statsConfig" />
         <xs:element ref="m2m:subscription" />
       </xs:choice>
-      <xs:element name="URIList" type="m2m:listOfURIs" />		
+      <xs:element name="URI" type="xs:anyURI" />		
     </xs:sequence>	
   </xs:complexType>
   
-- 
GitLab