Skip to content

Consider adding client test for JSON Schema 2020-12 preservation (SEP-1613) #101

@pcarleton

Description

@pcarleton

Summary

The current json-schema-2020-12 scenario is a server test that verifies servers can emit JSON Schema 2020-12 fields ($schema, $defs, additionalProperties).

However, the TypeScript SDK's PR #1135 actually fixed the client side - it added .catchall() to preserve these fields when parsing tool definitions received from servers.

Suggestion

Consider adding a client test that:

  1. Test server emits a tool with $schema, $defs, additionalProperties
  2. SDK client calls tools/list
  3. Client echoes back the schema via a special tool call
  4. Test verifies the client preserved all JSON Schema 2020-12 fields

This would more directly test what PR #1135 fixed.

Priority

Low - the server test still provides value by testing the wire format, even though the SDK's high-level API doesn't make it easy to emit raw JSON Schema 2020-12.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions