How can this be achieved in Swagger?  At least one of the element should be 
present

--all three city,state,circ7 cannot be empty  
<xs:complexType>                                                            
                                                                    
                <xs:choice>
                    <xs:sequence>
                        <xs:element maxOccurs="1" minOccurs="1" name="city" 
type="xs:string"/>
                        <xs:element maxOccurs="1" minOccurs="0" 
name="state" type="xs:string"/>
                        <xs:element maxOccurs="1" minOccurs="0" 
name="circ-7" type="xs:string"/>
                    </xs:sequence>
                    <xs:sequence>
                        <xs:element maxOccurs="1" minOccurs="1" 
name="state" type="xs:string"/>
                        <xs:element maxOccurs="1" minOccurs="0" 
name="circ-7" type="xs:string"/>
                    </xs:sequence>
                    <xs:sequence>
                        <xs:element maxOccurs="1" minOccurs="1" 
name="circ-7" type="xs:string"/>
                    </xs:sequence>
                </xs:choice>
  </xs:complexType>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to