Commit 48061fe
authored
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).1 parent eb36139 commit 48061fe
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments