You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation does not correctly support optional fields. Any field that defines itself as optional is marked as "string", and no "required" field is specified to define which fields are optional.
Test Schema
schema={transactionId: {type: z.string(),description: "The id of the transaction to modify",},cleared: {type: z.boolean().optional(),description: "Whether the transaction is cleared (optional, defaults to false)",},approved: {type: z.boolean().optional(),description: "Whether the transaction is approved (optional, defaults to false)",},};
Resulting JSON
{
"name": "update_transaction",
"description": "Update a transaction to mark it as cleared/uncleared and/or approved/not approved.",
"inputSchema": {
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"description": "The id of the transaction to modify"
},
"cleared": {
"type": "string",
"description": "Whether the transaction is cleared (optional, defaults to false)"
},
"approved": {
"type": "string",
"description": "Whether the transaction is approved (optional, defaults to false)"
}
}
}
}
Desired JSON
{
"name": "update_transaction",
"description": "Update a transaction to mark it as cleared/uncleared and/or approved/not approved.",
"inputSchema": {
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"description": "The id of the transaction to modify"
},
"cleared": {
"type": "boolean",
"description": "Whether the transaction is cleared (optional, defaults to false)"
},
"approved": {
"type": "boolean",
"description": "Whether the transaction is approved (optional, defaults to false)"
}
},
"required": ["transactionId"]
}
}
The text was updated successfully, but these errors were encountered:
The current implementation does not correctly support optional fields. Any field that defines itself as optional is marked as "string", and no "required" field is specified to define which fields are optional.
Test Schema
Resulting JSON
Desired JSON
The text was updated successfully, but these errors were encountered: