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 to set values with setApiPackage(..) and setModelPackage(..) #8013

Merged
merged 3 commits into from
Apr 13, 2018

Conversation

jmini
Copy link
Contributor

@jmini jmini commented Apr 12, 2018

See issue description in #8004.

  • New getter getInvokerPackage() added (to be consistent with other genertors already having this method with c100995
  • Test cases added for any logic change with 68cc55c => This demonstrates that there is no regression introduced with the main change.
  • Main change: aff61ba: values set with setApiPackage(..) and setModelPackage(..) are now taken in account [1]

[1] As I wrote it in #8004, my change is limited to all java generators (including android-client). I now have there the same behavior as for the PHP generators. See AbstractPhpCodegenTest.java for a reference: no matter if you set the values with the setters or with the map, they will be available (when you read them in the map or with the getters)

After this change you have a similar behavior for the java generators (see the corresponding test cases)

@wing328 wing328 added this to the v2.4.0 milestone Apr 13, 2018
@wing328 wing328 merged commit 006f084 into swagger-api:master Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants