From 584976e6c8a783d40578ab191132673300394a52 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 2 Feb 2023 09:32:58 +0100 Subject: [PATCH] fix(migrations): support --defaults in standalone migration (#48921) Fixes that running the standalone migration with `--defaults` was throwing an error, because all the properties were specified as required. We don't need to set them as required, because they have default values. Fixes #48845. PR Close #48921 --- .../schematics/ng-generate/standalone-migration/schema.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/core/schematics/ng-generate/standalone-migration/schema.json b/packages/core/schematics/ng-generate/standalone-migration/schema.json index be309141258..9b4ec31593d 100644 --- a/packages/core/schematics/ng-generate/standalone-migration/schema.json +++ b/packages/core/schematics/ng-generate/standalone-migration/schema.json @@ -30,13 +30,9 @@ }, "path": { "type": "string", - "$default": { - "$source": "workingDirectory" - }, "description": "Path relative to the project root which should be migrated", "x-prompt": "Which path in your project should be migrated?", "default": "./" } - }, - "required": ["mode", "path"] + } }