File tree Expand file tree Collapse file tree 24 files changed +63
-52
lines changed
src/main/scala/com/wordnik/swagger/model
swagger-oauth2-auth-server
java-jaxrs-no-annotations
scala-oauth-authorization-server Expand file tree Collapse file tree 24 files changed +63
-52
lines changed Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >com.wordnik</groupId >
55 <artifactId >swagger-project_2.10</artifactId >
6- <version >1.3.7 </version >
6+ <version >1.3.8 </version >
77 <relativePath >../..</relativePath >
88 </parent >
99 <modelVersion >4.0.0</modelVersion >
1010 <groupId >com.wordnik</groupId >
1111 <artifactId >swagger-annotations</artifactId >
12- <version >1.3.7 </version >
12+ <version >1.3.8 </version >
1313 <packaging >jar</packaging >
1414 <name >swagger-annotations</name >
1515
Original file line number Diff line number Diff line change 22 <parent >
33 <groupId >com.wordnik</groupId >
44 <artifactId >swagger-project_2.10</artifactId >
5- <version >1.3.7 </version >
5+ <version >1.3.8 </version >
66 <relativePath >../..</relativePath >
77 </parent >
88 <modelVersion >4.0.0</modelVersion >
99 <groupId >com.wordnik</groupId >
1010 <artifactId >swagger-core_2.10</artifactId >
1111 <packaging >jar</packaging >
1212 <name >swagger-core</name >
13- <version >1.3.7 </version >
13+ <version >1.3.8 </version >
1414 <build >
1515 <sourceDirectory >src/main/java</sourceDirectory >
1616 <defaultGoal >install</defaultGoal >
Original file line number Diff line number Diff line change @@ -240,10 +240,21 @@ object SwaggerSerializers extends Serializers {
240240 (" authorizations" -> {
241241 x.authorizations match {
242242 case e : List [Authorization ] if (e.size > 0 ) => {
243- Extraction .decompose((for (at : Authorization <- e) yield {
244- if (at.`type` != " " ) Some (at.`type`, at)
245- else None
246- }).flatten.toMap)
243+ Extraction .decompose({
244+ var open = false
245+ val o = ((for (at <- e) yield {
246+ if (at.`type` == " open" ) {
247+ open = true
248+ None
249+ }
250+ else if (at.`type` != " " ){
251+ val out : Option [Tuple2 [String , Authorization ]] = Some (at.`type`, at)
252+ out
253+ }
254+ else
255+ None
256+ }).flatten.toMap)
257+ })
247258 }
248259 case _ => JNothing
249260 }
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >com.wordnik</groupId >
55 <artifactId >swagger-project_2.10</artifactId >
6- <version >1.3.7 </version >
6+ <version >1.3.8 </version >
77 <relativePath >../..</relativePath >
88 </parent >
99 <modelVersion >4.0.0</modelVersion >
1010 <groupId >com.wordnik</groupId >
1111 <artifactId >swagger-jaxrs-utils_2.10</artifactId >
1212 <packaging >jar</packaging >
13- <version >1.3.7 </version >
13+ <version >1.3.8 </version >
1414 <name >swagger-jaxrs-utils</name >
1515 <build >
1616 <defaultGoal >install</defaultGoal >
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >com.wordnik</groupId >
55 <artifactId >swagger-project_2.10</artifactId >
6- <version >1.3.7 </version >
6+ <version >1.3.8 </version >
77 <relativePath >../..</relativePath >
88 </parent >
99 <modelVersion >4.0.0</modelVersion >
1010 <groupId >com.wordnik</groupId >
1111 <artifactId >swagger-jaxrs_2.10</artifactId >
1212 <packaging >jar</packaging >
13- <version >1.3.7 </version >
13+ <version >1.3.8 </version >
1414 <name >swagger-jaxrs</name >
1515 <build >
1616 <defaultGoal >install</defaultGoal >
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >com.wordnik</groupId >
55 <artifactId >swagger-project_2.10</artifactId >
6- <version >1.3.7 </version >
6+ <version >1.3.8 </version >
77 <relativePath >../..</relativePath >
88 </parent >
99 <modelVersion >4.0.0</modelVersion >
1010 <groupId >com.wordnik</groupId >
1111 <artifactId >swagger-jersey-jaxrs_2.10</artifactId >
1212 <packaging >jar</packaging >
13- <version >1.3.7 </version >
13+ <version >1.3.8 </version >
1414 <name >swagger-jersey-jaxrs</name >
1515 <build >
1616 <defaultGoal >install</defaultGoal >
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >com.wordnik</groupId >
55 <artifactId >swagger-project_2.10</artifactId >
6- <version >1.3.7 </version >
6+ <version >1.3.8 </version >
77 <relativePath >../..</relativePath >
88 </parent >
99 <modelVersion >4.0.0</modelVersion >
1010 <groupId >com.wordnik</groupId >
1111 <artifactId >swagger-jersey2-jaxrs_2.10</artifactId >
1212 <packaging >jar</packaging >
13- <version >1.3.7 </version >
13+ <version >1.3.8 </version >
1414 <name >swagger-jersey2-jaxrs (Jersey 2.x support)</name >
1515 <build >
1616 <defaultGoal >install</defaultGoal >
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >com.wordnik</groupId >
55 <artifactId >swagger-project_2.10</artifactId >
6- <version >1.3.7 </version >
6+ <version >1.3.8 </version >
77 <relativePath >../..</relativePath >
88 </parent >
99 <modelVersion >4.0.0</modelVersion >
1010 <groupId >com.wordnik</groupId >
1111 <artifactId >swagger-oauth2-server_2.10</artifactId >
1212 <packaging >jar</packaging >
13- <version >1.3.7 </version >
13+ <version >1.3.8 </version >
1414 <name >swagger-oauth2-server</name >
1515 <build >
1616 <defaultGoal >install</defaultGoal >
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >com.wordnik</groupId >
55 <artifactId >swagger-project_2.10</artifactId >
6- <version >1.3.7 </version >
6+ <version >1.3.8 </version >
77 <relativePath >../..</relativePath >
88 </parent >
99 <modelVersion >4.0.0</modelVersion >
1010 <groupId >com.wordnik</groupId >
1111 <artifactId >swagger-servlet_2.10</artifactId >
1212 <packaging >jar</packaging >
13- <version >1.3.7 </version >
13+ <version >1.3.8 </version >
1414 <name >swagger-servlet</name >
1515 <build >
1616 <defaultGoal >install</defaultGoal >
Original file line number Diff line number Diff line change 22 <parent >
33 <groupId >com.wordnik</groupId >
44 <artifactId >swagger-project_2.10</artifactId >
5- <version >1.3.7 </version >
5+ <version >1.3.8 </version >
66 <relativePath >../..</relativePath >
77 </parent >
88 <modelVersion >4.0.0</modelVersion >
99 <groupId >com.wordnik</groupId >
1010 <artifactId >swagger-utils_2.10</artifactId >
1111 <packaging >jar</packaging >
1212 <name >swagger-utils</name >
13- <version >1.3.7 </version >
13+ <version >1.3.8 </version >
1414 <build >
1515 <sourceDirectory >src/main/java</sourceDirectory >
1616 <defaultGoal >install</defaultGoal >
You can’t perform that action at this time.
0 commit comments