From 59cd5380aa1a1b491c1f32ebb8b78ab80d2af135 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Thu, 20 Sep 2012 14:16:20 -0700 Subject: [PATCH] added default value for key --- .../scala/com/wordnik/swagger/codegen/util/ApiExtractor.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/wordnik/swagger/codegen/util/ApiExtractor.scala b/src/main/scala/com/wordnik/swagger/codegen/util/ApiExtractor.scala index 3bd38946cc..617ccb8a82 100644 --- a/src/main/scala/com/wordnik/swagger/codegen/util/ApiExtractor.scala +++ b/src/main/scala/com/wordnik/swagger/codegen/util/ApiExtractor.scala @@ -28,7 +28,7 @@ import Source._ object ApiExtractor { def m = JsonUtil.getJsonMapper - def extractApiDocs(basePath: String, apis: List[DocumentationEndPoint], apiKey: Option[String]): List[Documentation] = { + def extractApiDocs(basePath: String, apis: List[DocumentationEndPoint], apiKey: Option[String] = None): List[Documentation] = { for (api <- apis) yield { val json = basePath.startsWith("http") match { case true => {