app.openapi( createRoute({ middleware: [auth], method: 'get', path: '/my-endpoint', security: [{ Authorization: [] }], request: { // ... }, responses: { 200: { // ... }, 401: { // ... } }, }), async (ctx) => { // do something return ctx.json({ ok: true }, 200) // <- explict })