Skip to content

Commit 81e7649

Browse files
committed
set default swagger version
1 parent 7950e8a commit 81e7649

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/swagger-core/src/main/scala/com/wordnik/swagger/config/SwaggerConfig.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.wordnik.swagger.config
22

3+
import com.wordnik.swagger.core.SwaggerSpec
4+
35
import com.wordnik.swagger.model.AuthorizationType
46

57
class SwaggerConfig(
@@ -9,5 +11,5 @@ class SwaggerConfig(
911
var apiPath: String,
1012
var authorizations: List[AuthorizationType] = List()) {
1113

12-
def this() = this(null, null, null, null, null)
14+
def this() = this(null, SwaggerSpec.version, null, null, null)
1315
}

0 commit comments

Comments
 (0)