cancel
Showing results for 
Search instead for 
Did you mean: 

What's the correct way to define an XML Collection containing an XML Element?

Occasional Contributor

What's the correct way to define an XML Collection containing an XML Element?

I'm using Swagger2.0 and I'm trying to define the following:

 

<root>

  <LREFERENCES>

    <LREFERENCE QUAL="A">

      <VALUE>100</VALUE>

    </LREFERENCE>

  </LREFERENCES>

</root>

 

I tried this:

...

   LREFERENCES:

     type: array

     items:

       type: object

       properties:

         LREFENCE:

           type: object

           properties:

             QUAL:

               type: string

               xml:

                 attribute: true

              VALUE:

                 type: string

 

But during testing the inner LSERVICE is not instantiated.  What am I doing wrong?

New Here?
Join us and watch the welcome video: