HonoH
Hono17mo ago
Flipvh

Scalar, hono and hono/zod-openapi

Scalar documentation was working great in my projectuntil a while ago, now I suddenly get
{
    "message": "Unknown zod object type, please specify `type` and other OpenAPI props using `ZodSchema.openapi`.",
    "data": {
        "currentSchema": {
            "typeName": "ZodLazy"
        }
    }
}


Anybody else using Scalar and hono/zod-openapi middleware?

It mightbe connected to this issue, but not sure: https://github.com/honojs/middleware/issues/660
GitHub
Hi there 👋 . I face the following situation where Zod-OpenAPI would return a ZodError - saying it expects a string, instead of an array when I only query by 1 value. (Note: I did have a work around...
Was this page helpful?