Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support XML simple type lists #612

Closed
jbreich opened this issue Mar 29, 2016 · 2 comments
Closed

Support XML simple type lists #612

jbreich opened this issue Mar 29, 2016 · 2 comments
Labels
media and encoding Issues regarding media type support and how to encode data (outside of query/path params) xml

Comments

@jbreich
Copy link

jbreich commented Mar 29, 2016

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

@RobDolinMS
Copy link
Contributor

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

@MikeRalphson MikeRalphson self-assigned this Apr 10, 2021
@handrews handrews added the media and encoding Issues regarding media type support and how to encode data (outside of query/path params) label Jan 30, 2024
@handrews
Copy link
Member

handrews commented Jun 9, 2024

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 handrews closed this as completed Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
media and encoding Issues regarding media type support and how to encode data (outside of query/path params) xml
Projects
None yet
Development

No branches or pull requests

4 participants