From 5312eabf38af8942c73be6e05a80e328d269ea55 Mon Sep 17 00:00:00 2001 From: khalilou88 Date: Wed, 20 Sep 2023 14:58:08 +0200 Subject: [PATCH] build: add enum to packaging option --- packages/nx-gradle/src/generators/application/schema.json | 4 ++++ packages/nx-maven/src/generators/application/schema.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/nx-gradle/src/generators/application/schema.json b/packages/nx-gradle/src/generators/application/schema.json index 5c9260724..3fbd6f9fc 100644 --- a/packages/nx-gradle/src/generators/application/schema.json +++ b/packages/nx-gradle/src/generators/application/schema.json @@ -68,6 +68,10 @@ "packaging": { "description": "Packaging of the project", "type": "string", + "enum": [ + "jar", + "war" + ], "default": "jar" }, "framework": { diff --git a/packages/nx-maven/src/generators/application/schema.json b/packages/nx-maven/src/generators/application/schema.json index 06b8a0a0a..acc8aff35 100644 --- a/packages/nx-maven/src/generators/application/schema.json +++ b/packages/nx-maven/src/generators/application/schema.json @@ -68,6 +68,10 @@ "packaging": { "description": "Packaging of the project", "type": "string", + "enum": [ + "jar", + "war" + ], "default": "jar" }, "framework": {