Skip to content

Cannot generate opneapi components schemas with client: "zod" #2656

@GitonioDev

Description

@GitonioDev
export default defineConfig({
    "backend-api": {
        input: "./backend-openapi.yaml",
        output: {
            mode: "single",
            client: "zod",
            target: "./admin-api.generated.ts",
            schemas: "schemas",
        },
    },
});

With this config i expect that schema/order.ts will have an zod schema based on that component schema but it is an Interface for whatever reason and not a zod schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedzodZod related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions