-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: removed len(properties) > 0 validation in simulation #23
Conversation
@@ -85,9 +85,6 @@ func validateToolDescription(tool ToolDescription) error { | |||
if !ok { | |||
return fmt.Errorf("tool %s: inputSchema.properties must be an object", tool.Name) | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also remove these validations rules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if they are not accurate, then yes let's remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this going to impact mcpx/mcp.run api cc @chrisdickinson
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I read the spec correctly the logic is "if properties
are present, they must be an object". Otherwise I think we'll be okay from the mcpx/mcp.run perspective!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisdickinson thanks for the clarification, i have updated the simulation to follow that logic
8221781
to
30d4260
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This makes my wordpress servlet pass the simulation