Skip to content

Tags: google/jsonschema-go

Tags

v0.4.2

Toggle v0.4.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
marshal empty properties map as empty object (for real) (#60)

Fix of #59.

v0.4.1

Toggle v0.4.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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).

v0.4.0

Toggle v0.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add PropertyOrder (#51)

Add PropertyOrder to inference.

Marshal follows PropertyOrder.

v0.3.0

Toggle v0.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.

v0.2.3

Toggle v0.2.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.

v0.2.2

Toggle v0.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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

v0.2.1

Toggle v0.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md to call Go Go, rather than GO (#11)

v0.2.0

Toggle v0.2.0's commit message
downgrade go.mod to 1.23.0

v0.1.0

Toggle v0.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update issue templates