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

Array types render the namespace prefix but not the XML namespace #2191

Closed
oconnorp opened this issue Jun 3, 2016 · 1 comment
Closed

Array types render the namespace prefix but not the XML namespace #2191

oconnorp opened this issue Jun 3, 2016 · 1 comment
Assignees
Milestone

Comments

@oconnorp
Copy link

oconnorp commented Jun 3, 2016

In the example below, an element defined as an array, when rendered in the UI, does not include the XML namespace. For elements defined as primitive types (and at the same level as errors) include the namespace declaration correctly.

Expecting <com:errors xmlns:com="http://www.botw.com/schemas/rest/common"> but only get

<com:errors>

Swagger UI version: 2.1.4

From swagger file:

errors:
        type: array
        description: Typically the response will havee EITHER a data element OR an errors element.  However, for partial responses, where some but not all of the products can be returned, there will be both a data and errors element.
        items:
          $ref: "#/definitions/Error"
        xml:
          name: errors
          namespace: http://www.botw.com/schemas/rest/common
          prefix: com
          wrapped: true
@bodnia
Copy link
Contributor

bodnia commented Jun 10, 2016

part of #2077

@webron webron closed this as completed in a2ce3e7 Jun 17, 2016
Jonahss pushed a commit to eaze/swagger-ui that referenced this issue Aug 12, 2016
vincent-zurczak pushed a commit to roboconf/swagger-ui that referenced this issue Aug 19, 2016
vincent-zurczak pushed a commit to roboconf/swagger-ui that referenced this issue Aug 19, 2016
@fehguy fehguy added this to the v2.2.1 milestone Aug 23, 2016
kodekracker pushed a commit to 91springboard/swagger-ui that referenced this issue Mar 2, 2017
JuanSW18 pushed a commit to Digital-Paw/digital-paw-swagger-ui that referenced this issue Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants