@@ -73,7 +73,7 @@ export class ServerOperationBuilder {
7373 }
7474
7575 get route ( ) : string {
76- const { route, params } = this . operation
76+ const { route, parameters } = this . operation
7777
7878 const placeholders = extractPlaceholders ( route )
7979
@@ -84,7 +84,9 @@ export class ServerOperationBuilder {
8484 )
8585 }
8686
87- const parameter = params . path . list . find ( ( it ) => it . name === placeholder )
87+ const parameter = parameters . path . list . find (
88+ ( it ) => it . name === placeholder ,
89+ )
8890
8991 if ( ! parameter ) {
9092 throw new Error (
@@ -161,7 +163,7 @@ export class ServerOperationBuilder {
161163 }
162164
163165 private pathParameters ( ) : Parameters [ "path" ] {
164- const $ref = this . operation . params . path . $ref
166+ const $ref = this . operation . parameters . path . $ref
165167
166168 const schema = $ref
167169 ? this . schemaBuilder . fromModel ( this . input . schema ( $ref ) , true , true )
@@ -173,11 +175,11 @@ export class ServerOperationBuilder {
173175 type = this . types . schemaObjectToType ( $ref )
174176 }
175177
176- return { name : this . operation . params . path . name , schema : schema , type}
178+ return { name : this . operation . parameters . path . name , schema : schema , type}
177179 }
178180
179181 private queryParameters ( ) : Parameters [ "query" ] {
180- const $ref = this . operation . params . query . $ref
182+ const $ref = this . operation . parameters . query . $ref
181183
182184 const schema = $ref
183185 ? this . schemaBuilder . fromModel ( this . input . schema ( $ref ) , true , true )
@@ -189,11 +191,11 @@ export class ServerOperationBuilder {
189191 type = this . types . schemaObjectToType ( $ref )
190192 }
191193
192- return { name : this . operation . params . query . name , schema : schema , type}
194+ return { name : this . operation . parameters . query . name , schema : schema , type}
193195 }
194196
195197 private headerParameters ( ) : Parameters [ "header" ] {
196- const $ref = this . operation . params . header . $ref
198+ const $ref = this . operation . parameters . header . $ref
197199
198200 const schema = $ref
199201 ? this . schemaBuilder . fromModel ( this . input . schema ( $ref ) , true , true )
@@ -205,7 +207,7 @@ export class ServerOperationBuilder {
205207 type = this . types . schemaObjectToType ( $ref )
206208 }
207209
208- return { name : this . operation . params . header . name , schema : schema , type}
210+ return { name : this . operation . parameters . header . name , schema : schema , type}
209211 }
210212
211213 private requestBodyParameter ( ) : Parameters [ "body" ] {
0 commit comments