@@ -29,28 +29,28 @@ export const generateNamespace = (
2929 comment : Servers . addComment ( [ topComment , pathItem . description ] , pathItem . servers ) ,
3030 } ) ;
3131 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 ) ;
3333 }
3434 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 ) ;
3636 }
3737 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 ) ;
3939 }
4040 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 ) ;
4242 }
4343 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 ) ;
4545 }
4646 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 ) ;
4848 }
4949 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 ) ;
5151 }
5252 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 ) ;
5454 }
5555 if ( pathItem . parameters ) {
5656 Parameters . generateNamespaceWithList ( entryPoint , currentPoint , store , factory , pathItem . parameters , context , converterContext ) ;
@@ -70,22 +70,22 @@ export const generateStatements = (
7070 const statements : ts . Statement [ ] [ ] = [ ] ;
7171 if ( pathItem . get ) {
7272 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 ) ,
7474 ) ;
7575 }
7676 if ( pathItem . put ) {
7777 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 ) ,
7979 ) ;
8080 }
8181 if ( pathItem . post ) {
8282 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 ) ,
8484 ) ;
8585 }
8686 if ( pathItem . delete ) {
8787 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 ) ,
8989 ) ;
9090 }
9191 if ( pathItem . options ) {
@@ -98,24 +98,25 @@ export const generateStatements = (
9898 requestUri ,
9999 "OPTIONS" ,
100100 pathItem . options ,
101+ pathItem . parameters ,
101102 context ,
102103 converterContext ,
103104 ) ,
104105 ) ;
105106 }
106107 if ( pathItem . head ) {
107108 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 ) ,
109110 ) ;
110111 }
111112 if ( pathItem . patch ) {
112113 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 ) ,
114115 ) ;
115116 }
116117 if ( pathItem . trace ) {
117118 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 ) ,
119120 ) ;
120121 }
121122 // if (pathItem.parameters) {
0 commit comments