testJsonSchema and testJsonSchemaWithDefinitions only round-tripped a HashMap through Jackson since JsonSchema was replaced by Map in modelcontextprotocol#749, so no SDK change could fail them. They now deserialize the schema as a Tool inputSchema and compare the serialized inputSchema with the original document.
testToolWithMeta passed Map.of("inputSchema", schemaJson), which is not a schema; it now builds the tool from the parsed schema JSON.
Stale comments describing the old JsonSchema round trip are removed.
Signed-off-by: Ilya Muromtsev <let4time@gmail.com>
Test-only follow-up to #749. After JsonSchema was replaced by Map<String, Object>, three tests in McpSchemaTests stopped checking what they were named for:
No production code changes.
Verification
A draft-07 definitions schema deserializes into Tool without any validation error: the 2020-12 meta-schema check (SEP-1613) runs only when a server registers a tool, not during deserialization.
Prepared with an AI coding agent and reviewed by me.