WAAYZZz 🍀
WAAYZZz 🍀
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
do you have any repo to recommand ?
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
yes i will try that, thx for your help !
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
ok strange behavior it's because i wasn't providing a basePath when creating app
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
using const app = new Hono(); instead of const app = createInternalApp(); works
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
it's because of my honoCreateApp, i need to handle openapi inside
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
i got it
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
app.openapi doesn t exist
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
not breaking but not interpreted
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
if i copy the route working at root in a sub route she doesn t work
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
no just default z.object
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
first case
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
[Symbol(openapi)] is missing in my app.route routes
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
if i create a route with app.get at root of the application, route is detected by openapi
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
{"openapi":"3.1.0","info":{"title":"Rplan API","description":"API for Rplan","version":"1.0.0"},"paths":{},"components":{"schemas":{}}}
{"openapi":"3.1.0","info":{"title":"Rplan API","description":"API for Rplan","version":"1.0.0"},"paths":{},"components":{"schemas":{}}}
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
it s like i have no routes
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
but routes works but aren't showing in openapi swagger
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
now yes
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
exactly
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
if i don t use app.get / post at the root of app, routes aren t visible by openApiSpecs
81 replies
HHono
Created by WAAYZZz 🍀 on 3/4/2025 in #help
Use zod schema generated with prisma with @hono/zod-openapi
// index.ts
const app = createInternalApp();

app.route("auth", authRoutes);
app.route("user", userRoutes);
app.route("plan", planRoutes);
app.route("invitation", invitationRoutes);

app.get(
"/openapi",
openAPISpecs(app, {
documentation: {
info: {
title: "Rplan API",
version: "1.0.0",
description: "API for Rplan",
},
},
})
);

app.get(
"/ui",
swaggerUI({
url: "/openapi",
})
);
// index.ts
const app = createInternalApp();

app.route("auth", authRoutes);
app.route("user", userRoutes);
app.route("plan", planRoutes);
app.route("invitation", invitationRoutes);

app.get(
"/openapi",
openAPISpecs(app, {
documentation: {
info: {
title: "Rplan API",
version: "1.0.0",
description: "API for Rplan",
},
},
})
);

app.get(
"/ui",
swaggerUI({
url: "/openapi",
})
);
Do you know if there is something special todo to handle app.route for openapi ?
81 replies