@@ -29,28 +29,28 @@ export const generateNamespace = (
29
29
comment : Servers . addComment ( [ topComment , pathItem . description ] , pathItem . servers ) ,
30
30
} ) ;
31
31
if ( pathItem . get ) {
32
- Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "GET" , pathItem . get , context , converterContext ) ;
32
+ Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "GET" , pathItem . get , pathItem . parameters , context , converterContext ) ;
33
33
}
34
34
if ( pathItem . put ) {
35
- Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "PUT" , pathItem . put , context , converterContext ) ;
35
+ Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "PUT" , pathItem . put , pathItem . parameters , context , converterContext ) ;
36
36
}
37
37
if ( pathItem . post ) {
38
- Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "POST" , pathItem . post , context , converterContext ) ;
38
+ Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "POST" , pathItem . post , pathItem . parameters , context , converterContext ) ;
39
39
}
40
40
if ( pathItem . delete ) {
41
- Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "DELETE" , pathItem . delete , context , converterContext ) ;
41
+ Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "DELETE" , pathItem . delete , pathItem . parameters , context , converterContext ) ;
42
42
}
43
43
if ( pathItem . options ) {
44
- Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "OPTIONS" , pathItem . options , context , converterContext ) ;
44
+ Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "OPTIONS" , pathItem . options , pathItem . parameters , context , converterContext ) ;
45
45
}
46
46
if ( pathItem . head ) {
47
- Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "HEAD" , pathItem . head , context , converterContext ) ;
47
+ Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "HEAD" , pathItem . head , pathItem . parameters , context , converterContext ) ;
48
48
}
49
49
if ( pathItem . patch ) {
50
- Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "PATCH" , pathItem . patch , context , converterContext ) ;
50
+ Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "PATCH" , pathItem . patch , pathItem . parameters , context , converterContext ) ;
51
51
}
52
52
if ( pathItem . trace ) {
53
- Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "TRACE" , pathItem . trace , context , converterContext ) ;
53
+ Operation . generateNamespace ( entryPoint , currentPoint , store , factory , basePath , "TRACE" , pathItem . trace , pathItem . parameters , context , converterContext ) ;
54
54
}
55
55
if ( pathItem . parameters ) {
56
56
Parameters . generateNamespaceWithList ( entryPoint , currentPoint , store , factory , pathItem . parameters , context , converterContext ) ;
@@ -70,22 +70,22 @@ export const generateStatements = (
70
70
const statements : ts . Statement [ ] [ ] = [ ] ;
71
71
if ( pathItem . get ) {
72
72
statements . push (
73
- Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "GET" , pathItem . get , context , converterContext ) ,
73
+ Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "GET" , pathItem . get , pathItem . parameters , context , converterContext ) ,
74
74
) ;
75
75
}
76
76
if ( pathItem . put ) {
77
77
statements . push (
78
- Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "PUT" , pathItem . put , context , converterContext ) ,
78
+ Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "PUT" , pathItem . put , pathItem . parameters , context , converterContext ) ,
79
79
) ;
80
80
}
81
81
if ( pathItem . post ) {
82
82
statements . push (
83
- Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "POST" , pathItem . post , context , converterContext ) ,
83
+ Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "POST" , pathItem . post , pathItem . parameters , context , converterContext ) ,
84
84
) ;
85
85
}
86
86
if ( pathItem . delete ) {
87
87
statements . push (
88
- Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "DELETE" , pathItem . delete , context , converterContext ) ,
88
+ Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "DELETE" , pathItem . delete , pathItem . parameters , context , converterContext ) ,
89
89
) ;
90
90
}
91
91
if ( pathItem . options ) {
@@ -98,24 +98,25 @@ export const generateStatements = (
98
98
requestUri ,
99
99
"OPTIONS" ,
100
100
pathItem . options ,
101
+ pathItem . parameters ,
101
102
context ,
102
103
converterContext ,
103
104
) ,
104
105
) ;
105
106
}
106
107
if ( pathItem . head ) {
107
108
statements . push (
108
- Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "HEAD" , pathItem . head , context , converterContext ) ,
109
+ Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "HEAD" , pathItem . head , pathItem . parameters , context , converterContext ) ,
109
110
) ;
110
111
}
111
112
if ( pathItem . patch ) {
112
113
statements . push (
113
- Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "PATCH" , pathItem . patch , context , converterContext ) ,
114
+ Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "PATCH" , pathItem . patch , pathItem . parameters , context , converterContext ) ,
114
115
) ;
115
116
}
116
117
if ( pathItem . trace ) {
117
118
statements . push (
118
- Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "TRACE" , pathItem . trace , context , converterContext ) ,
119
+ Operation . generateStatements ( entryPoint , currentPoint , store , factory , requestUri , "TRACE" , pathItem . trace , pathItem . parameters , context , converterContext ) ,
119
120
) ;
120
121
}
121
122
// if (pathItem.parameters) {
0 commit comments