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

Allow xml: name: root to skip a nested XML element. #2635

Closed
wants to merge 1 commit into from

Conversation

gabesmed
Copy link

@gabesmed gabesmed commented Jan 28, 2017

This PR sets a special

xml:
  name: root

in a swagger descriptor for the pru On encountering this flag, the first property of the object is converted directly into XML, rather than being nested.

So:

xml:
  name: root
properties:
  data:
    example: 123

will be converted to <data>123</data>, not <root><data>123</data></root>.

@gabesmed gabesmed closed this Jan 28, 2017
@gabesmed gabesmed deleted the gs-xml-hack branch January 28, 2017 18:10
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

Successfully merging this pull request may close these issues.

None yet

1 participant