go-sdk/jsonschema
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Amsterdam e3938ce68c internal/mcp/jsonschema: clearer validations errors
Validation errors now more clearly indicate the path from the root
schema.

- Enhance schema iteration to yield the path, and generalize it by using
  reflection.

- Store each schema's path inside the schema.

- Remove the path arg from validate: we don't need it anymore.

- Improve the test for the iterators and add one for validation
  errors.

Change-Id: Ief55133ef4ae2eac0736208a3b9f78ed69933b31
Reviewed-on: https://go-review.googlesource.com/c/tools/+/676375
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Jonathan Amsterdam <jba@google.com>
2025-05-27 13:58:26 -07:00
..
meta-schemas/draft2020-12 jsonschema: resolve remote references 2025-05-13 11:46:13 -07:00
testdata jsonschema: add more schema fields 2025-05-21 17:03:52 -07:00
annotations.go internal/mcp: move jsonschema out of mcp/internal 2025-05-05 13:17:44 -07:00
doc.go jsonschema: package doc 2025-05-21 19:27:34 -07:00
infer.go internal/mcp/jsonschema: support validating structs 2025-05-06 15:48:51 -07:00
infer_test.go internal/mcp: move jsonschema out of mcp/internal 2025-05-05 13:17:44 -07:00
json_pointer.go internal/mcp/jsonschema: clearer validations errors 2025-05-27 13:58:26 -07:00
json_pointer_test.go jsonschema: implement JSON Pointers for schemas 2025-05-07 09:31:46 -07:00
resolve.go internal/mcp/jsonschema: clearer validations errors 2025-05-27 13:58:26 -07:00
resolve_test.go all: fix some function names and typos in comment 2025-05-23 10:44:52 -07:00
schema.go internal/mcp/jsonschema: clearer validations errors 2025-05-27 13:58:26 -07:00
schema_test.go internal/mcp/jsonschema: clearer validations errors 2025-05-27 13:58:26 -07:00
util.go jsonschema: resolve refs 2025-05-08 08:56:49 -07:00
util_test.go internal/mcp: move jsonschema out of mcp/internal 2025-05-05 13:17:44 -07:00
validate.go internal/mcp/jsonschema: clearer validations errors 2025-05-27 13:58:26 -07:00
validate_test.go internal/mcp/jsonschema: clearer validations errors 2025-05-27 13:58:26 -07:00