Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

[WIP] Support for XML-Responses #23

Closed
wants to merge 1 commit into from

Conversation

winniehell
Copy link
Contributor

Please add support for XML entities.

Related to JamesMessinger/swagger-server#16

@winniehell
Copy link
Contributor Author

Not as straight forward as I initially thought.

[
  "foo",
  "bar"
]

may as well be

<cars>
  <car>foo</car>
  <car>bar</car>
</cars>

or

<cakes>
  <cake>foo</cake>
  <cake>bar</cake>
</cakes>

Any of the following might help:

Any other ideas, how to solve that?

@JamesMessinger
Copy link
Member

Swagger allows you to specify how the JSON Schema should map to XML (see XML Object).

@winniehell
Copy link
Contributor Author

@BigstickCarpet Thank you for the link! 👍
I'd like to work on this issue, but right know I'm unsure how to start... maybe I'll try to come up with a failing test for XML requests first.
What do you think of adding a Content-Type-parameter to tests/specs/mock/query-collection.spec.js?

@winniehell
Copy link
Contributor Author

After #24 is merged, these would be the next steps in my opinion. Do you agree?

@JamesMessinger
Copy link
Member

Looks like a good roadmap to me. Thanks for taking the lead on this. I wish I had the free time to help you out, but it sounds like you've got a solid handle on the situation.

@winniehell winniehell changed the title Support for XML-Responses [WIP] Support for XML-Responses Mar 1, 2016
@winniehell
Copy link
Contributor Author

I won't finish this because we have decided not to use swagger.

@winniehell winniehell closed this Aug 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants