From ab5d7b1b04d5033e79fecfb66e7ff90c606274aa Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Tue, 26 Feb 2019 21:11:03 -0600 Subject: [PATCH] Turn on proper model property naming --- package.json | 2 +- swagger.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 swagger.json 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