Skip to content

[Feature request] Support of ZodDiscriminatedUnion in schemas #808

@nataliapc

Description

@nataliapc

Is your feature request related to a problem? Please describe.

Looking for a way to define relationships between arguments in the tools inputSchema.

Describe the solution you'd like

Allow to use ZodDiscriminatedUnion as inputschema.

Describe alternatives you've considered

  • Use of zod .refine method.
  • Check the arguments relationship consistency in the tools handler.

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