scaffolder-backend: loosen schema for catalog write action input to match JsonObject constraint

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-03-29 10:53:31 +02:00
parent 63317d3e3f
commit d0c0551208
2 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -85,9 +85,7 @@ export function createCatalogRegisterAction(options: {
// @public
export function createCatalogWriteAction(): TemplateAction_2<
{
entity: {} & {
[k: string]: unknown;
};
entity: Record<string, any>;
filePath?: string | undefined;
},
JsonObject
@@ -69,8 +69,7 @@ export function createCatalogWriteAction() {
.describe('Defaults to catalog-info.yaml'),
// TODO: this should reference an zod entity validator if it existed.
entity: z
.object({})
.passthrough()
.record(z.any())
.describe(
'You can provide the same values used in the Entity schema.',
),