-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When attempting to generate a jsonschema using a struct that references itself(jsonschema.Schema for example), an error is returned: cycle detected for type jsonschema.Schema. This error is coming from jsonschema/infer.go
To Reproduce
Steps to reproduce the behavior:
- Generate a jsonschema using jsonschema.Schema or any other struct that references itself.
Expected behavior
Generate a ref instead of erroring
Logs
cycle detected for type jsonschema.Schema
Additional context
For reference, my use case is accepting a json schema as input to an MCP tool.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working