Skip to content

Commit

Permalink
dave - tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
david denton committed Mar 6, 2015
1 parent 7dca5b6 commit 0f3fcc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ object Swagger1dot1Json {
"summary" -> string(r.description.value),
"produces" -> array(string("application/json")),
"parameters" -> array(params.map(render): _*),
"errorResponses" -> {
array(Seq[PathResponse]().map(r => r.code -> string(r.description)).map(p => obj("code" -> number(p._1), "description" -> p._2)))
}
"errorResponses" -> array(Seq[PathResponse]().map(r => obj("code" -> number(r.code), "description" -> string(r.description))))
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object Swagger2dot0Json {
"summary" -> string(r.description.value),
"produces" -> array(string("application/json")),
"parameters" -> array(params.map(render): _*),
"responses" -> obj(Seq(PathResponse(200, "")).map(r => r.code -> obj("description" -> string(r.description))).map(cd => cd._1.toString -> cd._2)),
"responses" -> obj(Seq(PathResponse(200, "")).map(r => r.code.toString -> obj("description" -> string(r.description)))),
"security" -> array(obj(Seq[Security]().map(_.toPathSecurity)))
)
}
Expand Down

0 comments on commit 0f3fcc9

Please sign in to comment.