Skip to content

Commit db1915e

Browse files
committed
Merge pull request #252 from earldouglas/path-not-optional
Drop the 'optional' param for path params
2 parents 013c19e + 77e9ce5 commit db1915e

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)