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

only last media type considered in request body when multiple types are defined #8679

Closed
frantuma opened this issue Sep 7, 2018 · 1 comment
Assignees
Milestone

Comments

@frantuma
Copy link
Member

frantuma commented Sep 7, 2018

Description

only last media type considered in request body when multiple types are defined in a request body, only the last one get considered (at least e.g. in java client)

Swagger-codegen version

3.0.1-SNAPSHOT

Swagger declaration file content or url

https://gist.github.com/frantuma/40d3b1610b70693717393969562ad3f5

Command line used for generation

via online generator, request:

{
  "specURL" : "https://gist.github.com/frantuma/40d3b1610b70693717393969562ad3f5",
  "spec" : {},
  "lang" : "java",
  "options" : {
    "additionalProperties" : {
    	"useRuntimeException": true,
    	"useRxJava" : true
    }
  },
  "type" : "CLIENT",
  "codegenVersion" : "V3"
}
Steps to reproduce

run the generator for java client, and see there will be no updatePet(Pet pet) operation in generated client

@HugoMario
Copy link
Contributor

this issue has been fixed with codegen-generators 299 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants