Skip to content

Conversation

@phstudy
Copy link
Contributor

@phstudy phstudy commented Sep 26, 2018

PR checklist

  • Read the contribution guidelines.
  • Ran the shell 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). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: master, 3.3.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

Replace USE_NULL_FOR_UNKNOWN_ENUM_VALUE option with nullable attribute

cc @bbdouglas (2017/07) @JFCote (2017/08) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01)

@phstudy phstudy changed the title [Java] add java cli option for USE_NULL_FOR_UNKNOWN_ENUM_VALUE [Java] Replace USE_NULL_FOR_UNKNOWN_ENUM_VALUE option with nullable attribute Sep 26, 2018
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -t modules/openapi-generator/src/main/resources/Java/libraries/feign -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-feign-10x.json -o samples/client/petstore/java/feign10x -DhideGenerationTimestamp=true -DbooleanGetterPrefix=is $@"
ags="generate -t modules/openapi-generator/src/main/resources/Java/libraries/feign -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-feign-10x.json -o samples/client/petstore/java/feign10x -DhideGenerationTimestamp=true -DbooleanGetterPrefix=is $@"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phstudy thanks for updating the script to use OpenAPI 3.0 spec but we want to use the 2.0 spec for the scripts under ./bin/

The scripts under ./bin/openapi3 are using the 3.0 spec.

We plan to move the samples to another repository instead as llikely the size of the repo will increase significantly if we include the petstore samples for both 2.0 and 3.0 spec.

./bin/java-petstore-retrofit2rx2.sh
./bin/java-petstore-vertx.sh
./bin/java-petstore-webclient.sh
./bin/java8-petstore-jersey2.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting the scripts in order for easier maintenance.

@wing328
Copy link
Member

wing328 commented Jul 26, 2019

I've filed #3455 to replace this PR instead.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants