From cfa52ae692b5ea0923301b975a6fe297105e930e Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 7 Mar 2023 14:11:01 +0100 Subject: [PATCH 1/2] chore: this should pass through properties instead of being strict Signed-off-by: blam --- .../src/scaffolder/actions/builtin/catalog/write.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/catalog/write.ts b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/catalog/write.ts index aaaf504833..9e823d2574 100644 --- a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/catalog/write.ts +++ b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/catalog/write.ts @@ -70,6 +70,7 @@ export function createCatalogWriteAction() { // TODO: this should reference an zod entity validator if it existed. entity: z .object({}) + .passthrough() .describe( 'You can provide the same values used in the Entity schema.', ), From 9968f45592154aa763e50466c3071101082f58de Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 7 Mar 2023 14:13:01 +0100 Subject: [PATCH 2/2] chore: add changeset Signed-off-by: blam --- .changeset/honest-clouds-shout.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/honest-clouds-shout.md diff --git a/.changeset/honest-clouds-shout.md b/.changeset/honest-clouds-shout.md new file mode 100644 index 0000000000..0a7249d9ad --- /dev/null +++ b/.changeset/honest-clouds-shout.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder-backend': patch +--- + +catalog write action should allow any shape of object