Skip to content

Commit c937fd3

Browse files
committed
fix(md-db): use input schema in toJson()
1 parent 6a178eb commit c937fd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/markdown-db/src/markdown-db.engine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,10 @@ export class MarkdownDb<
424424

425425
/**
426426
* Return the JSON schema representation of the configuration schema
427+
* Validates against the input type
427428
*/
428429
public get jsonSchema() {
429-
return z.toJSONSchema(this.schema);
430+
return z.toJSONSchema(this.schema, { io: "input" });
430431
}
431432
}
432433

0 commit comments

Comments
 (0)