Merge pull request #598 from sinedied/fix-empty-schema
fix: missing "properties" property in empty schema
This commit is contained in:
commit
7682c4cf4f
2 changed files with 2 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ describe("tool()", () => {
|
|||
expect(result.tools[0].name).toBe("test");
|
||||
expect(result.tools[0].inputSchema).toEqual({
|
||||
type: "object",
|
||||
properties: {},
|
||||
});
|
||||
|
||||
// Adding the tool before the connection was established means no notification was sent
|
||||
|
|
|
|||
|
|
@ -1182,6 +1182,7 @@ export type RegisteredTool = {
|
|||
|
||||
const EMPTY_OBJECT_JSON_SCHEMA = {
|
||||
type: "object" as const,
|
||||
properties: {},
|
||||
};
|
||||
|
||||
// Helper to check if an object is a Zod schema (ZodRawShape)
|
||||
|
|
|
|||
Loading…
Reference in a new issue