Ask a Question

XML Representing Attribute and Element

Juani
Occasional Visitor

XML Representing Attribute and Element

Hi

I'm in an urgent project and we are implementing an open api 3.0 solution in XML.

Want to try to define the following case (xml element and attribute):

 

<Header>
    <Direction index="4">Human Ressource</Fluss>
</Header>

 

This implementation does not lead to the desired result:

 

Header:
  type: object
  properties:
    Fluss:
      type: object
      properties:
        Index:
          type: string
          xml:
             attribute: true
             example: 99
        value:
            type: string
            xml:
                text:true

 

I'm getting allways errors during rendering in swagger.

Is there any solution for this problem and how does it look like?

thx for (soon) your support.

Juani

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: