[Jaxrs] Add beanvalidation annotations and fix outer Enums#4492
[Jaxrs] Add beanvalidation annotations and fix outer Enums#4492wing328 merged 9 commits intoswagger-api:masterfrom
Conversation
| { | ||
| public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen implements BeanValidationFeatures | ||
| { | ||
| protected boolean useBeanValidation = true; |
There was a problem hiding this comment.
I suggest we keep useBeanValidation to false similar to what we've done for other Java-related generator: https://github.com/swagger-api/swagger-codegen/search?l=Java&q=useBeanValidation&utf8=%E2%9C%93
There was a problem hiding this comment.
@jfiala I'll think about this more and get back to you.
|
@jfiala the Travis CI failed with the following error message: Please take a look. |
|
@wing328 I changed my git settings (on Windows) to git config --global core.autocrlf input and then did a reset for the branch as described here (https://help.github.com/articles/dealing-with-line-endings/#refreshing-a-repository-after-changing-line-endings) and checked in with corrected lf settings. |
|
@wing328 the crlf are fixed now (one build is still failing due to an error at the Java library ok-http-gson, but I didn't change anything there). |
It's not documented in our wiki at the moment. I'll put it in the contributing guideline shortlly. Thanks for the suggestion 👍 |
|
@wing328 is there already an ETA for the next release 2.2.2? |
|
@jfiala let me try to review later today and merge this in if there's no feedback from me or anyone from the community. ETA for 2.2.2 is Jan/Feb 2017 |
|
@jfiala I ran some tests and didn't find any issue. Thanks for the enhancements. |
|
@wing328 great, thx can you pls also take a look at the other beanvalidation PR's so we get them all in? |
|
@jfiala yup, merged a few already. Would need your help to rebase one of them on the latest master. |
|
@wing328 thx alot, I already noticed, I'll rebase the spring-branch and then let you know. |
…pi#4492) * add beanvalidation to jaxrs and add support for outer Enums swagger-api#4091 * cleanup Codegen swagger-api#4091 * cleanup samples swagger-api#4091 * cleanup tabs * updated samples to petstore.yaml (before petstore.json) * add support for DecimalMin/DecimalMax/Min/Max swagger-api#4091 * add check for hideGenerationTimestamp swagger-api#4091 * replace tabs * correct line endings to lf
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)2.3.0branch for breaking (non-backward compatible) changes.Description of the PR