formatting

This commit is contained in:
Tony Tam 2014-07-04 10:18:44 -07:00
parent a019a438e0
commit 89b04b2e10

View File

@ -88,9 +88,8 @@ abstract class BasicGenerator extends CodegenConfig with PathUtil {
val apis: List[ApiListing] = getApis(host, doc, authorization)
val errors = new ListBuffer[ValidationError] ++ SwaggerValidator.validate(doc)
for(api <- apis) {
for(api <- apis)
SwaggerValidator.validate(api, errors)
}
errors.filter(_.severity == SwaggerValidator.ERROR).size match {
case i: Int if i > 0 => {