Skip to content

Commit 77e9ce5

Browse files
committed
Drop the 'optional' param for path params
1 parent 013c19e commit 77e9ce5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/scala/com/wordnik/swagger/codegen/Codegen.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ class Codegen(config: CodegenConfig) {
163163
params += "paramName" -> config.toVarName(param.name)
164164
params += "baseName" -> param.name
165165
params += "required" -> "true"
166+
params -= "optional"
166167
pathParams += params.clone
167168
}
168169
case "query" => {

0 commit comments

Comments
 (0)