diff --git a/openapi-generator.yaml b/openapi-generator.yaml new file mode 100644 index 0000000..0738df7 --- /dev/null +++ b/openapi-generator.yaml @@ -0,0 +1,3 @@ +additionalProperties: + fileNaming: kebab-case + modelPropertyNaming: camelCase \ No newline at end of file diff --git a/package.json b/package.json index 110c19f..e68c38d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "ng": "ng", "start": "ng serve", "build": "ng build", - "watch": "ng build --watch --configuration development" + "watch": "ng build --watch --configuration development", + "openapi": "rm -rf src/app/services/api && openapi-generator-cli generate -i http://localhost:5228/swagger/v1/swagger.json -g typescript-angular -o src/app/services/api -c openapi-generator.yaml" }, "prettier": { "printWidth": 100,