swagger-api / swagger-api/swagger-codegen
Which client language support XML payload (response)?
Open
Nobody has claimed this yet.
Client: Java
Enhancement: Feature
General: Question
help wanted
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
As the title say Which client language support XML payload (response)? i'm trying with the java client but i'm getting
io.swagger.client.ApiException: Content type "application/xml" is not supported for type: class io.swagger.client.model.Collection
at io.swagger.client.ApiClient.deserialize(ApiClient.java:850)
at io.swagger.client.ApiClient.handleResponse(ApiClient.java:1045)
at io.swagger.client.ApiClient.execute(ApiClient.java:972)
at io.swagger.client.api.CatalogApi.restfulShoppingTagsGetWithHttpInfo(CatalogApi.java:304)
at io.swagger.client.api.CatalogApi.restfulShoppingTagsGet(CatalogApi.java:289)
at io.swagger.client.api.TestCall.main(TestCall.java:29)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported stack trace in ApiClient.java, especially deserialize and handleResponse, then trace the CatalogApi.java call for restfulShoppingTagsGet and the Collection model. Reproduce the application/xml response with the Java client and determine the expected behavior for Collection deserialization; done means the supported behavior is verified and covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100