File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed
openapi-ts-tests/main/test Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @hey-api/openapi-ts ' : patch
3
+ ---
4
+
5
+ fix(config): correctly load user-defined hooks
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ export default defineConfig(() => {
36
36
'3.1.x' ,
37
37
// 'invalid',
38
38
// 'openai.yaml',
39
- // 'full.yaml',
39
+ 'full.yaml' ,
40
40
// 'opencode.yaml',
41
- 'sdk-instance.yaml' ,
41
+ // 'sdk-instance.yaml',
42
42
// 'validators-circular-ref-2.yaml',
43
43
// 'zoom-video-sdk.json',
44
44
) ,
@@ -98,6 +98,12 @@ export default defineConfig(() => {
98
98
} ,
99
99
hooks : {
100
100
operations : {
101
+ getKind ( ) {
102
+ // noop
103
+ } ,
104
+ isMutation ( ) {
105
+ // noop
106
+ } ,
101
107
isQuery : ( op ) => {
102
108
if ( op . method === 'post' && op . path === '/search' ) {
103
109
return true ;
@@ -227,6 +233,12 @@ export default defineConfig(() => {
227
233
}
228
234
return undefined ;
229
235
} ,
236
+ isMutation ( ) {
237
+ // noop
238
+ } ,
239
+ isQuery : ( ) => {
240
+ // noop
241
+ } ,
230
242
} ,
231
243
} ,
232
244
} ,
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ export const getParser = (userConfig: UserConfig): Config['parser'] => {
40
40
} ;
41
41
42
42
if ( userConfig . parser ) {
43
+ if ( userConfig . parser . hooks ) {
44
+ parser . hooks = userConfig . parser . hooks ;
45
+ }
46
+
43
47
if ( userConfig . parser . pagination ?. keywords ) {
44
48
parser . pagination . keywords = userConfig . parser . pagination . keywords ;
45
49
}
You can’t perform that action at this time.
0 commit comments