Skip to content

Commit d11de95

Browse files
author
PJ Fanning
committed
fix tests (older scala versions)
1 parent beccebd commit d11de95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/scala/com/github/swagger/scala/converter/SwaggerScalaModelConverter.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ class SwaggerScalaModelConverter extends ModelResolver(Json.mapper()) {
4646
case Some(property) => {
4747
if (isIterable(cls)) {
4848
//untidy solution for https://github.com/swagger-akka-http/swagger-scala-module/issues/48
49-
property.getRequired.remove("traversableAgain")
49+
val required = property.getRequired
50+
required.remove("traversableAgain")
51+
required.remove("empty")
5052
val props = property.getProperties
5153
props.remove("traversableAgain")
5254
props.remove("empty")

0 commit comments

Comments
 (0)