Migrate catalog-react and app blueprints to configSchema
Move EntityCardBlueprint and EntityContentBlueprint to the new `configSchema` option using zod v3, and AppLanguageApi to zod v4. Fix config schema merge in `makeWithOverrides` when mixing `configSchema` and deprecated `config.schema` sources. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -738,19 +738,15 @@ export function createExtensionBlueprint(options: any): any {
|
||||
if: args.if ?? options.if,
|
||||
inputs: { ...args.inputs, ...options.inputs },
|
||||
output: (args.output ?? options.output) as ExtensionDataRef[],
|
||||
config:
|
||||
options.config || args.config
|
||||
? {
|
||||
schema: {
|
||||
...options.config?.schema,
|
||||
...args.config?.schema,
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
configSchema:
|
||||
options.configSchema || args.configSchema
|
||||
options.configSchema ||
|
||||
args.configSchema ||
|
||||
options.config?.schema ||
|
||||
args.config?.schema
|
||||
? {
|
||||
...options.config?.schema,
|
||||
...options.configSchema,
|
||||
...args.config?.schema,
|
||||
...args.configSchema,
|
||||
}
|
||||
: (undefined as any),
|
||||
|
||||
Reference in New Issue
Block a user