From fe78fc0f23177343b6457024d51962eff7555712 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Mon, 17 Nov 2025 15:57:59 +0100 Subject: [PATCH] il manque plus que openapi en ligne de commande et suppr les dossiers interfaces --- openapi-generator.yaml | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 openapi-generator.yaml 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,