@@ -110,7 +110,7 @@ const eventsPlugin: FastifyPluginAsyncZodOpenApi = async (
110110 . openapi ( { description : "Event host filter." } ) ,
111111 ts,
112112 } ) ,
113- response : { 200 : getEventsSchema } ,
113+ // response: { 200: getEventsSchema },
114114 } ) ,
115115 } ,
116116 async ( request , reply ) => {
@@ -223,12 +223,12 @@ const eventsPlugin: FastifyPluginAsyncZodOpenApi = async (
223223 "/:id?" ,
224224 {
225225 schema : withTags ( [ "Events" ] , {
226- response : {
227- 201 : z . object ( {
228- id : z . string ( ) ,
229- resource : z . string ( ) ,
230- } ) ,
231- } ,
226+ // response: {
227+ // 201: z.object({
228+ // id: z.string(),
229+ // resource: z.string(),
230+ // }),
231+ // },
232232 body : postRequestSchema ,
233233 } ) satisfies FastifyZodOpenApiSchema ,
234234 onRequest : async ( request , reply ) => {
@@ -363,12 +363,12 @@ const eventsPlugin: FastifyPluginAsyncZodOpenApi = async (
363363 example : "6667e095-8b04-4877-b361-f636f459ba42" ,
364364 } ) ,
365365 } ) ,
366- response : {
367- 201 : z . object ( {
368- id : z . string ( ) ,
369- resource : z . string ( ) ,
370- } ) ,
371- } ,
366+ // response: {
367+ // 201: z.object({
368+ // id: z.string(),
369+ // resource: z.string(),
370+ // }),
371+ // },
372372 } ) satisfies FastifyZodOpenApiSchema ,
373373 onRequest : async ( request , reply ) => {
374374 await fastify . authorize ( request , reply , [ AppRoles . EVENTS_MANAGER ] ) ;
@@ -437,7 +437,7 @@ const eventsPlugin: FastifyPluginAsyncZodOpenApi = async (
437437 querystring : z . object ( {
438438 ts,
439439 } ) ,
440- response : { 200 : getEventSchema } ,
440+ // response: { 200: getEventSchema },
441441 } ) ,
442442 } ,
443443 async ( request , reply ) => {
0 commit comments