File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -703,7 +703,9 @@ export const ${swrKeyFnName} = (${queryKeyProps}) => [\`${route}\`${
703
703
export const ${ swrMutationFetcherName } = (${ swrProps } ${ swrMutationFetcherOptions } ) => {
704
704
return (_: string, ${ swrMutationFetcherArg } : { arg: Arguments }): ${ swrMutationFetcherType } => {
705
705
return ${ operationName } (${ httpFnProperties } ${
706
- swrMutationFetcherOptions . length ? ', options' : ''
706
+ swrMutationFetcherOptions . length
707
+ ? ( httpFnProperties . length ? ', ' : '' ) + 'options'
708
+ : ''
707
709
} );
708
710
}
709
711
}\n` ;
Original file line number Diff line number Diff line change @@ -145,4 +145,15 @@ export default defineConfig({
145
145
} ,
146
146
} ,
147
147
} ,
148
+ nestedArrays : {
149
+ output : {
150
+ target : '../generated/swr/nested-arrays/endpoints.ts' ,
151
+ schemas : '../generated/swr/nested-arrays/model' ,
152
+ client : 'swr' ,
153
+ mock : true ,
154
+ } ,
155
+ input : {
156
+ target : '../specifications/arrays.yaml' ,
157
+ } ,
158
+ } ,
148
159
} ) ;
You can’t perform that action at this time.
0 commit comments