go-sdk/jsonschema
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Albert Sundjaja e27a36ed32
jsonchema: add cycle detection (#97)
This PR add cycle detection where it return error instead of waiting for
stack overflow.

This is a fix for https://github.com/modelcontextprotocol/go-sdk/issues/77.
The root cause of the issue was the type being processed is deeply
nested and has cycle. Hence, the heap memory growth is faster than the
stack growth, it went OOM before stack overflow panic can kick in.
2025-07-10 08:55:45 -04:00
..
meta-schemas/draft2020-12 jsonschema: resolve remote references 2025-05-13 11:46:13 -07:00
testdata testdata: explain omitted test files (#106) 2025-07-08 14:08:01 -04:00
annotations.go internal/mcp: move jsonschema out of mcp/internal 2025-05-05 13:17:44 -07:00
doc.go jsonschema: unexport ForType (#71) 2025-06-30 14:44:40 -04:00
infer.go jsonchema: add cycle detection (#97) 2025-07-10 08:55:45 -04:00
infer_test.go jsonchema: add cycle detection (#97) 2025-07-10 08:55:45 -04:00
json_pointer.go internal/mcp/internal/util: add Wrapf 2025-06-09 08:52:39 -07:00
json_pointer_test.go jsonschema: implement JSON Pointers for schemas 2025-05-07 09:31:46 -07:00
resolve.go internal/mcp: validate tool input schemas 2025-06-04 07:51:59 -07:00
resolve_test.go internal/mcp/jsonschema: validate defaults 2025-05-28 07:50:15 -07:00
schema.go jsonchema: support additional keywords 2025-07-01 07:02:26 -04:00
schema_test.go jsonchema: support additional keywords 2025-07-01 07:02:26 -04:00
util.go jsonchema: support additional keywords 2025-07-01 07:02:26 -04:00
util_test.go jsonchema: support additional keywords 2025-07-01 07:02:26 -04:00
validate.go jsonschema: improve Resolved.Validate doc (#81) 2025-07-01 10:37:03 -04:00
validate_test.go internal/mcp: unify json tag parsing 2025-06-04 11:03:21 -07:00