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:
@@ -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.',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user