Skip to main content

BIN GyBGe Documentation

  • Author:

  • Version: 1

  • Description: Collection restricted to single value, case choice list, the UI is that one of a single choice. See how in JSON instance is still a collection / JSON array

  • Created: 2017-03-12

  • Modified: 2017-03-12

  • Source:

     Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <complexType name='Form' description='Collection restricted to single value, case choice list, the UI is that one of a single choice. See how in JSON instance is still a collection / JSON array '>
        <implements type='Base'/>
        <choice name='Hello' maxOccurs='1' >
            <field name='Sub1' />
            <field name='Sub2' />
        </choice>
        <field name='HelloSingle'  default='WorldSingle' type='xs:string' />
    </complexType>
    <complexType name='Base' description=''>
        <choice name='Hello' maxOccurs='n'>
            <field name='Sub1' default='World' type='xs:string'/>
            <field name='Sub2' default='World' type='xs:string'/>
        </choice>
    </complexType>