tool meta

This commit is contained in:
Dax Raad
2025-05-20 11:11:06 -04:00
parent 2437ce3f8b
commit 9b564f0b73
10 changed files with 127 additions and 94 deletions

View File

@@ -33,7 +33,7 @@ export namespace Bus {
export function specs() {
const children = {} as any;
for (const [type, def] of registry.entries()) {
children[def.type] = def.properties;
children["event." + def.type] = def.properties;
}
const result = z.toJSONSchema(z.object(children)) as any;
result.definitions = result.properties;