Skip to content

schema-normalizer: add ZodSerializer (IR → Zod) to complete the serializer matrix #31

Description

@amitpaz1

The package parses Zod/JSON-Schema/OpenAPI → IntakeSchema IR and serializes IR → JSON Schema, but has no IR → Zod path. So an intake built from a JSON-Schema field set (e.g. an external adapter) can produce IR/JSON-Schema but not the live ZodType the MCP runtime validator needs (.safeParse, instanceof z.ZodObject for .partial()).

Add a symmetric ZodSerializer — the missing cell next to JSONSchemaSerializer — lossless for the validated surface (types, constraints, formats, required/optional, nullable, defaults, enums, nested objects/arrays).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions