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
marshal empty properties map as empty object (#59)
Some MCP clients want a "properties" keyword on a tool schema, even
if it is empty.
For an example, see golang/go#76777.
This PR makes an empty map in Schema.Properties marshal as "{}" instead
of omitting it.
Technically, this is a breaking change, but it is extremely unlikely
that it will matter to anyone (except in a good way).
jsonschema: change TypeSchemas key to reflect.Type (#29)
BREAKING CHANGE
The key of ForOptions.TypeSchemas cannot be a value of the type,
because some types can't be map keys.
So change it to reflect.Type.
Fixes#26.
jsonschema: support applying defaults to interface values; better err…
…ors (#21)
Add a couple fixes necessary for modelcontextprotocol/go-sdk#447:
- Allow applying defaults to dynamic values, such as encountered in
map[string]any .
- Improve the error message when additionalProperties is disallowed
This is a common error, and was completely inscrutable.
infer: flatten embedded structs (#14)
This PR fixes an issue where embedded structs were not being
flattened like encoding/json does. It now treats these embedded
structs correctly.
For modelcontextprotocol/go-sdk#437