diff --git a/package.json b/package.json index 1458b683..baa797c5 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "export-i18n": "bundle exec rake settings:combine_translations", "generate-openapi": "rake oapi:gen", "get-codegen-cli": "script/download_codegen_cli.sh", - "generate-api-js": "rm -rf javascripts/api && npm run get-codegen-cli && npm run generate-openapi && java -jar .bin/swagger-codegen-cli.jar generate -l 'typescript-jquery' -i tmp/openapi.json -o javascripts/api -t lib/swagger-typescript-jquery" + "generate-api-js": "rm -rf javascripts/api && npm run get-codegen-cli && npm run generate-openapi && java -jar .bin/swagger-codegen-cli.jar generate -l 'typescript-jquery' -i tmp/openapi.json -o javascripts/api --config 'swagger.json' -t lib/swagger-typescript-jquery" }, "devDependencies": { "@types/enzyme": "^3.1.9", diff --git a/swagger.json b/swagger.json new file mode 100644 index 00000000..4282e7ef --- /dev/null +++ b/swagger.json @@ -0,0 +1,3 @@ +{ + "modelPropertyNaming": "original" +} \ No newline at end of file