forked from loafle/openapi-generator-original
* add option to generate alias as model * [JAXRS/CXF] Emit method bodies, test data (#1158) New jaxrs-cxf-extended generator with options: - supportMultipleSpringServices Support generation of Spring services from multiple specifications - generateOperationBody (boolean) Enables generation of fully functional test/service method bodies that pass/return random but valid values & models. - loadTestDataFromFile (boolean) When true, generated method bodies load test data from a generated JSON file. When false, generated method bodies contain inline code to construct the test data. - testDataFile (string) The path of a JSON file to contain generated test data. The file is initially generated but editable; edits are preserved by subsequent generations. - testDataControlFile (string) The path of a JSON file to control test data generation - specifically, to control the number of items required in array properties, structured by API class / operation name / parameter name. The file is initially generated but editable; edits are preserved by subsequent generations. - tests for the jaxrs-cxf-extended generator, including the new options Bug fixes: - fix bug (DefaultGenerator): handle absolute paths in supporting file spec - fix bug (DefaultCodegen): process enums in allVars - fix bug (AbstractJavaCodegen): support multiple inheritance via allOf (inheritance code deleted, as a subsequent pull broke it) - fix bug (JavaCXFServerCodegen): use operationId instead of nickname (gets out of step with duplicate operationIds) - fix bug (JavaCXFServerCodegen): set appropriate default consumes/produces for operations with body parameters or non-void returns (CXF providers don't handle */*) - fix indentation (DefaultCodegen) - add support for a system property openapitools.implementation.version to specify the package implementation version when running non-JAR'd classes in an IDE (otherwise {{{generatorVersion}}} evaluates to 'unset'. * reformat code * make sh executable * fix template folder * fix template folder, update samples * run test data manually to avoid ci failure
22 lines
860 B
Bash
Executable File
22 lines
860 B
Bash
Executable File
#!/bin/sh
|
|
# script to run all generators extending AbstractJavaJAXRSServerCodegen
|
|
|
|
./bin/jaxrs-petstore-server-datelib-j8.sh
|
|
./bin/jaxrs-cxf-cdi-petstore-server.sh
|
|
./bin/jaxrs-cxf-petstore-server-annotated-base-path.sh
|
|
./bin/jaxrs-cxf-petstore-server-non-spring-application.sh
|
|
./bin/jaxrs-cxf-petstore-server.sh
|
|
./bin/jaxrs-jersey1-petstore-server.sh
|
|
./bin/jaxrs-jersey1-usetags-petstore-server.sh
|
|
./bin/jaxrs-petstore-server.sh
|
|
./bin/jaxrs-resteasy-eap-java8-petstore-server.sh
|
|
./bin/jaxrs-resteasy-eap-joda-petstore-server.sh
|
|
./bin/jaxrs-resteasy-eap-petstore-server.sh
|
|
./bin/jaxrs-resteasy-joda-petstore-server.sh
|
|
./bin/jaxrs-resteasy-petstore-server.sh
|
|
./bin/jaxrs-spec-petstore-server-interface.sh
|
|
./bin/jaxrs-spec-petstore-server.sh
|
|
./bin/jaxrs-usetags-petstore-server.sh
|
|
|
|
echo " Please run ./bin/jaxrs-cxf-petstore-server-test-data.sh manually instead"
|