MCPcopy Index your code
hub / github.com/google/jsonschema-go

github.com/google/jsonschema-go @0.4.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.4.3 ↗ · + Follow
173 symbols 453 edges 15 files 80 documented · 46% 87 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

JSON Schema for Go

This module implements the JSON Schema specification. The jsonschema package supports creating schemas, validating JSON values against a schema, and inferring a schema from a Go struct. See the package documentation for usage.

Contributing

This module welcomes external contributions. It has no dependencies outside of the standard library, and can be built with the standard Go toolchain. Run go test ./... at the module root to run all the tests.

Issues

This project uses the GitHub issue tracker for bug reports, feature requests, and other issues.

Please report bugs. If the SDK is not working as you expected, it is likely due to a bug or inadequate documentation, and reporting an issue will help us address this shortcoming.

When reporting a bug, make sure to answer these five questions:

  1. What did you do?
  2. What did you see?
  3. What did you expect to see?
  4. What version of the Go MCP SDK are you using?
  5. What version of Go are you using (go version)?

License

This project is licensed under the MIT license. See the LICENSE file for details.

Extension points exported contracts — how you extend this code

Loader (FuncType)
A Loader reads and unmarshals the schema at uri, if any.
jsonschema/resolve.go

Core symbols most depended-on inside this repo

f64Ptr
called by 30
jsonschema/infer.go
Ptr
called by 22
jsonschema/schema.go
String
called by 18
jsonschema/schema.go
Resolve
called by 17
jsonschema/resolve.go
falseSchema
called by 11
jsonschema/schema.go
Validate
called by 9
jsonschema/validate.go
all
called by 7
jsonschema/schema.go
assert
called by 6
jsonschema/util.go

Shape

Function 89
Struct 42
Method 34
TypeAlias 7
FuncType 1

Languages

Go100%

Modules by API surface

jsonschema/infer_test.go31 symbols
jsonschema/validate_test.go24 symbols
jsonschema/schema.go20 symbols
jsonschema/resolve.go18 symbols
jsonschema/validate.go13 symbols
jsonschema/schema_test.go13 symbols
jsonschema/util.go12 symbols
jsonschema/resolve_test.go8 symbols
jsonschema/util_test.go7 symbols
jsonschema/annotations.go7 symbols
jsonschema/infer.go6 symbols
jsonschema/draft07_test.go6 symbols

For agents

$ claude mcp add jsonschema-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact