From 21375c418d22f41572d643bad22c8fd541ace9cb Mon Sep 17 00:00:00 2001
From: PeterNiblett <pdn3270@gmail.com>
Date: Sun, 18 Jan 2015 02:49:33 +0000
Subject: [PATCH] Moved eventCat into common types

---
 CDT-commonTypes-v0_8_0.xsd  |  7 +++++++
 CDT-subscription-v0_8_0.xsd | 29 +++++++++++------------------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/CDT-commonTypes-v0_8_0.xsd b/CDT-commonTypes-v0_8_0.xsd
index 363f9f2..a0ab4d3 100644
--- a/CDT-commonTypes-v0_8_0.xsd
+++ b/CDT-commonTypes-v0_8_0.xsd
@@ -33,6 +33,13 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
         <xs:restriction base="xs:dateTime" />
     </xs:simpleType>
 
+<!-- TODO: it's not clear that we need both this an eventCatType -->
+    <xs:complexType name="eventCat">
+        <xs:sequence>
+            <xs:element name="eventCatType" type="m2m:eventCatType" />
+            <xs:element name="eventCatNo" type="xs:nonNegativeInteger" />
+        </xs:sequence>
+    </xs:complexType>
 
 	<xs:simpleType name="extendedCrontab">
 		<xs:restriction base="xs:string">
diff --git a/CDT-subscription-v0_8_0.xsd b/CDT-subscription-v0_8_0.xsd
index 7c3f9d7..de6c4e6 100644
--- a/CDT-subscription-v0_8_0.xsd
+++ b/CDT-subscription-v0_8_0.xsd
@@ -40,9 +40,16 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 						<xs:element name="eventNotificationCriteria" type="m2m:eventNotificationCriteria" minOccurs="0" />
 						<xs:element name="expirationCounter" type="xs:positiveInteger" minOccurs="0" />
 						<xs:element name="notificationURI" type="m2m:AnyURIList" />
-						<xs:element name="groupName" type="xs:anyURI" minOccurs="0" />
+						<xs:element name="groupID" type="xs:anyURI" minOccurs="0" />
 						<xs:element name="notificationForwardingURI" type="xs:anyURI" minOccurs="0" />
-						<xs:element name="batchNotify" type="m2m:batchNotify" minOccurs="0" />
+						<xs:element name="batchNotify" minOccurs="0">
+							<xs:complexType>
+								<xs:sequence>
+									<xs:element name="number" type="xs:nonNegativeInteger" minOccurs="0" />
+									<xs:element name="duration" type="xs:duration" minOccurs="0" />
+								</xs:sequence>
+							</xs:complexType>
+						</xs:element>
 						<xs:element name="rateLimit" type="m2m:rateLimit" minOccurs="0" />
 						<xs:element name="preSubscriptionNotify" type="xs:positiveInteger" minOccurs="0" />
 						<xs:element name="pendingNotification" type="m2m:pendingNotification" minOccurs="0" />
@@ -64,7 +71,6 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 		</xs:complexType>
 	</xs:element>
 
-	<!-- TODO: If this used by anything other than <subscription> it might be better placed in the CommonTypes XSD file -->
 	<xs:complexType name="eventNotificationCriteria">
 		<xs:sequence>
 			<xs:element name="createdBefore" type="xs:dateTime" minOccurs="0" />
@@ -82,14 +88,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 			<xs:element name="attribute" type="m2m:attribute" minOccurs="0" maxOccurs="unbounded" />
 		</xs:sequence>
 	</xs:complexType>
-
-
-	<xs:complexType name="batchNotify">
-		<xs:sequence>
-			<xs:element name="number" type="xs:nonNegativeInteger" minOccurs="0" />
-			<xs:element name="duration" type="xs:duration" minOccurs="0" />
-		</xs:sequence>
-	</xs:complexType>
+	
+	<!-- TODO: Member names here are different from those given in TS-0004 -->
 
 	<xs:complexType name="rateLimit">
 		<xs:sequence>
@@ -98,11 +98,4 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 		</xs:sequence>
 	</xs:complexType>
 
-	<xs:complexType name="eventCat">
-		<xs:sequence>
-			<xs:element name="eventCatType" type="m2m:eventCatType" />
-			<xs:element name="eventCatNo" type="xs:nonNegativeInteger" />
-		</xs:sequence>
-	</xs:complexType>
-
 </xs:schema>
-- 
GitLab