mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
added default value
This commit is contained in:
parent
26bcc80ae3
commit
77141cd55a
@ -19,7 +19,7 @@ package com.wordnik.swagger.codegen.util
|
|||||||
import scala.io.Source
|
import scala.io.Source
|
||||||
|
|
||||||
object ResourceExtractor {
|
object ResourceExtractor {
|
||||||
def extractListing(path: String, apiKey: Option[String]) = {
|
def extractListing(path: String, apiKey: Option[String] = None) = {
|
||||||
path.startsWith("http") match {
|
path.startsWith("http") match {
|
||||||
case true => Source.fromURL(path + apiKey.getOrElse("")).mkString
|
case true => Source.fromURL(path + apiKey.getOrElse("")).mkString
|
||||||
case false => Source.fromFile(path).mkString
|
case false => Source.fromFile(path).mkString
|
||||||
|
Loading…
Reference in New Issue
Block a user