Create template: Allow empty destination and name
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 8 Jun 2016 01:50:52 +0000 (21:50 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 4 Jul 2016 19:42:28 +0000 (15:42 -0400)
Allow template with empty name and no destination so create generate them.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/common/config/session.xsd

index 569e4b01151aca1e69acf8489d0fcbc1b2a0f112..95be6bfa51fd12e34303e618b88f37926c8c4d62 100644 (file)
@@ -281,7 +281,7 @@ elementFormDefault="qualified" version="3.0">
 </xs:complexType>
 
 <xs:complexType name="destination_type">
-       <xs:choice>
+       <xs:choice minOccurs="0">
                <xs:element name="path" type="xs:string"/>
                <xs:element name="net_output" type="net_output_type"/>
        </xs:choice>
@@ -317,7 +317,7 @@ elementFormDefault="qualified" version="3.0">
 
 <xs:complexType name="session_type">
        <xs:all>
-               <xs:element name="name" type="name_type"/>
+               <xs:element name="name" type="name_type" minOccurs="0"/>
                <xs:element name="shared_memory_path" type="xs:string" minOccurs="0"/>
                <xs:element name="domains" type="domain_list_type" minOccurs="0"/>
                <xs:element name="started" type="xs:boolean" default="0" minOccurs="0"/>
This page took 0.026941 seconds and 5 git commands to generate.