Skip to content

Commit 4dccb1c

Browse files
committed
reapplyed #775
1 parent 42603fa commit 4dccb1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/swagger-core/src/main/scala/com/wordnik/swagger/model/SwaggerSerializers.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,9 @@ trait Serializers {
509509
}) ~
510510
("authorizations" -> {
511511
x.authorizations match {
512-
case e: List[AuthorizationType] if (e.size > 0) => {
513-
Extraction.decompose((for(at: AuthorizationType <- e) yield {
514-
if(at.`type` != "") Some(at.getName, at)
512+
case e: List[Authorization] if (e.size > 0) => {
513+
Extraction.decompose((for(at: Authorization <- e) yield {
514+
if(at.`type` != "") Some(at.`type`, at)
515515
else None
516516
}).flatten.toMap)
517517
}

0 commit comments

Comments
 (0)