From f6c741ad838eb7d9f0c7e914ec87a14fd94f1341 Mon Sep 17 00:00:00 2001 From: pawel-twardziak Date: Thu, 14 Nov 2024 22:26:34 +0100 Subject: [PATCH] fix(nest): repair nestjs service generator schema (#28928) # Related Issue(s) Fixes #28910 --- docs/generated/packages/nest/generators/service.json | 9 +++++++-- packages/nest/src/generators/service/schema.json | 11 ++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/generated/packages/nest/generators/service.json b/docs/generated/packages/nest/generators/service.json index d99968b5131123..4c8543e37ccf04 100644 --- a/docs/generated/packages/nest/generators/service.json +++ b/docs/generated/packages/nest/generators/service.json @@ -9,10 +9,15 @@ "cli": "nx", "type": "object", "properties": { + "path": { + "description": "Path where the service will be generated.", + "type": "string", + "$default": { "$source": "argv", "index": 0 }, + "x-prompt": "Where should the service be generated?" + }, "name": { "description": "The name of the service.", "type": "string", - "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What name would you like to use?" }, "skipFormat": { @@ -34,7 +39,7 @@ } }, "additionalProperties": false, - "required": ["name"], + "required": ["path"], "presets": [] }, "description": "Run the `service` NestJS generator with Nx project support.", diff --git a/packages/nest/src/generators/service/schema.json b/packages/nest/src/generators/service/schema.json index 382b2bb99593c9..3755f64e98cd63 100644 --- a/packages/nest/src/generators/service/schema.json +++ b/packages/nest/src/generators/service/schema.json @@ -6,13 +6,18 @@ "cli": "nx", "type": "object", "properties": { - "name": { - "description": "The name of the service.", + "path": { + "description": "Path where the service will be generated.", "type": "string", "$default": { "$source": "argv", "index": 0 }, + "x-prompt": "Where should the service be generated?" + }, + "name": { + "description": "The name of the service.", + "type": "string", "x-prompt": "What name would you like to use?" }, "skipFormat": { @@ -34,5 +39,5 @@ } }, "additionalProperties": false, - "required": ["name"] + "required": ["path"] }