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

[JaxrsResteasy] Improvements for Resteasy for Jboss EAP 4512 #4712

Merged
merged 16 commits into from
Feb 28, 2017

Conversation

jfiala
Copy link
Contributor

@jfiala jfiala commented Feb 4, 2017

PR checklist

  • Read the contribution guildelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)
  • Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes.

Description of the PR

First draft adaption of the jaxrs-resteasy language, for details see #4512

I created a new language jaxrs-resteasy-eap so this change can make it into 2.2.2.
With 2.3.0 this language could replace the existing jaxrs-resteasy.

The new samples are generated to samples/server/petstore/jaxrs-resteasy/eap and eap-joda to separate it from jaxrs-resteasy paths (default/joda-time).

The WAR file was verified to run on Jboss EAP 6 and 7.

This language supports Java8 and Joda datetime using the JacksonConfig, the needed dependencies included automatically (see pom.mustache).

I added the flag "joda" to AbstractJavaCodegen.java to allow checking for joda in the mustache templates.

I also added the option to generate the Swagger contract dynamically (useSwaggerFeature).

New test including the useSwaggerFeature: JavaResteasyEapServerOptionsTest.java

@jfiala jfiala changed the title Jaxrs resteasy eap 4512 [JaxrsResteasy] Improvements for Resteasy for Jboss EAP 4512 Feb 4, 2017
@jfiala
Copy link
Contributor Author

jfiala commented Feb 4, 2017

Finished all the requirements of #4512 so far.

Please let me know if I should also generate sample output for java8 datetime support (currently there are only sample outputs for joda).

@jfiala
Copy link
Contributor Author

jfiala commented Feb 7, 2017

@wing328 Can we have this for 2.2.2? I provided a customer of mine with templates for this, but I would like to have this in the release.

@wing328
Copy link
Contributor

wing328 commented Feb 8, 2017

@jfiala let me review first...

@wing328 wing328 closed this Feb 8, 2017
@wing328 wing328 reopened this Feb 8, 2017
@wing328 wing328 modified the milestones: v2.2.2, v2.2.3 Feb 22, 2017
@wing328 wing328 closed this Feb 28, 2017
@wing328 wing328 reopened this Feb 28, 2017
@wing328 wing328 modified the milestones: v2.2.2, v2.2.3 Feb 28, 2017
@wing328 wing328 merged commit de727d7 into swagger-api:master Feb 28, 2017
@wing328
Copy link
Contributor

wing328 commented Feb 28, 2017

@jfiala I did some tests and merged the PR into master (2.2.2). Thanks for the contribution.

(I noticed some minor code alignment issue and will fix it later with #4859)

@jfiala jfiala deleted the jaxrs_resteasy-eap_4512 branch March 9, 2017 21:01
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
…-api#4712)

* add language for resteasy eap swagger-api#4512

* first implementation of jaxrs-resteasy-eap swagger-api#4512

* add support for joda and java8 datetime types swagger-api#4512

* add new file JacksonConfig and new sample eap-joda swagger-api#4512

* add dynamic swagger support to jaxrs-resteasy-eap swagger-api#4512

* adapt readme for eap swagger-api#4512

* add tests for jaxrs-resteasy-eap swagger-api#4512

* cleanup tabs swagger-api#4512

* cleanup tabs swagger-api#4512

* cleanup tabs swagger-api#4512

* cleanup tabs / regenerate without joda swagger-api#4512

* regenerate with updated templates swagger-api#4512

* fix test (wrong setter invoked) swagger-api#4512

* fix test swagger-api#4512

* fix no invocation swagger-api#4512

* replace tabs with spaces swagger-api#4512
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