OpenAPI-Specification icon indicating copy to clipboard operation
OpenAPI-Specification copied to clipboard

Support XML simple type lists

Open jbreich opened this issue 9 years ago • 1 comments

From what I understand it is not possible to use an XML document containing a simple type list like this one:

<xs:element name="root">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="list">
        <xs:simpleType>
          <xs:list itemType="xs:string" />
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

A valid xml is: <root><list>value1 value2</list></root>

With Swagger it is only possible to represent an array using a repeated XML element with an optional XML element wrapper. It would be nice to also support this

jbreich avatar Mar 29 '16 15:03 jbreich

@jbreich Can you add a comment on if there is an implementer or customer that is interested in this?

RobDolinMS avatar Apr 25 '17 20:04 RobDolinMS

This was a 2.0 question and the question to the OP in 2017 has been unanswered. I'm going to close this - please feel free to open a new issue if a similar problem exists in 3.1. But I'm fairly sure this ends up being a subset of or at least closely related to #630

handrews avatar Jun 09 '24 21:06 handrews