File tree 1 file changed +9
-12
lines changed
1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 142
142
! ! verbOption . response . originalSchema ?. [ '200' ] ?. content ?. [ 'application/json' ]
143
143
? `zValidator('response', ${ verbOption . operationName } Response),\n`
144
144
: ''
145
- } (c: ${ contextTypeName } ) => {
145
+ } async (c: ${ contextTypeName } ) => {
146
146
147
147
},
148
148
);` ;
@@ -199,17 +199,14 @@ const getHandlerFix = ({
199
199
const getVerbOptionGroupByTag = (
200
200
verbOptions : Record < string , GeneratorVerbOptions > ,
201
201
) => {
202
- return Object . values ( verbOptions ) . reduce (
203
- ( acc , value ) => {
204
- const tag = value . tags [ 0 ] ;
205
- if ( ! acc [ tag ] ) {
206
- acc [ tag ] = [ ] ;
207
- }
208
- acc [ tag ] . push ( value ) ;
209
- return acc ;
210
- } ,
211
- { } as Record < string , GeneratorVerbOptions [ ] > ,
212
- ) ;
202
+ return Object . values ( verbOptions ) . reduce ( ( acc , value ) => {
203
+ const tag = value . tags [ 0 ] ;
204
+ if ( ! acc [ tag ] ) {
205
+ acc [ tag ] = [ ] ;
206
+ }
207
+ acc [ tag ] . push ( value ) ;
208
+ return acc ;
209
+ } , { } as Record < string , GeneratorVerbOptions [ ] > ) ;
213
210
} ;
214
211
215
212
const generateHandlers = async (
You can’t perform that action at this time.
0 commit comments