feat(schema): add support for JSON Schema $defs and definitions (#146)
Added support for $defs and definitions properties in JsonSchema record to handle JSON Schema references properly. Added tests to verify both formats work correctly. The JsonSchema test approach uses serialization/deserialization round-trip validation instead of property-by-property assertions. This makes tests more maintainable and less likely to break when new properties are added. 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
86e3e9048f
commit
f70b98b4b4
1 changed files with 132 additions and 1 deletions
|
|
@ -703,7 +703,9 @@ public final class McpSchema {
|
|||
@JsonProperty("type") String type,
|
||||
@JsonProperty("properties") Map<String, Object> properties,
|
||||
@JsonProperty("required") List<String> required,
|
||||
@JsonProperty("additionalProperties") Boolean additionalProperties) {
|
||||
@JsonProperty("additionalProperties") Boolean additionalProperties,
|
||||
@JsonProperty("$defs") Map<String, Object> defs,
|
||||
@JsonProperty("definitions") Map<String, Object> definitions) {
|
||||
} // @formatter:on
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue