forked from loafle/openapi-generator-original
* Added new cli option to define the request date converter * Fixed a few build errors * Update api.mustache * Fixed api mustache * Removed unused import * Fixing mustache templates * Tweaking mustache templates * Added sample and new bat file TODO create new openapi 2.0 source file to simulate the datestring via schema. * Tweaking mustache templates * Updated templates and samples * Fixed build error * Updated samples * Fixed path
11 lines
513 B
Batchfile
11 lines
513 B
Batchfile
set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
|
|
|
|
If Not Exist %executable% (
|
|
mvn clean package
|
|
)
|
|
|
|
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
|
|
set ags=generate --artifact-id "kotlin-petstore-json-request-date" -i modules\openapi-generator\src\test\resources\2_0\petstore-with-date-field.yaml -g kotlin --additional-properties requestDateConverter=toJson -o samples\client\petstore\kotlin-json-request-date
|
|
|
|
java %JAVA_OPTS% -jar %executable% %ags%
|