We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42603fa commit 4dccb1cCopy full SHA for 4dccb1c
modules/swagger-core/src/main/scala/com/wordnik/swagger/model/SwaggerSerializers.scala
@@ -509,9 +509,9 @@ trait Serializers {
509
}) ~
510
("authorizations" -> {
511
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)
+ case e: List[Authorization] if (e.size > 0) => {
+ Extraction.decompose((for(at: Authorization <- e) yield {
+ if(at.`type` != "") Some(at.`type`, at)
515
else None
516
}).flatten.toMap)
517
}
0 commit comments