fixes for inner types, spec 1.2 conversion

This commit is contained in:
Tony Tam 2013-08-16 17:16:20 -07:00
parent c386edb2e4
commit a7bf8b6314
3 changed files with 14 additions and 1 deletions

View File

@ -46,6 +46,13 @@ class BasicJavaGeneratorTest extends FlatSpec with ShouldMatchers {
config.processResponseDeclaration("string") should be (Some("String"))
}
/*
* arrays look nice
*/
it should "process a string array" in {
config.processResponseDeclaration("array[String]") should be (Some("List<String>"))
}
/*
* swagger int is turned into scala Int
*/

View File

@ -46,6 +46,13 @@ class BasicScalaGeneratorTest extends FlatSpec with ShouldMatchers {
config.processResponseDeclaration("string") should be (Some("String"))
}
/*
* arrays look nice
*/
it should "process a string array" in {
config.processResponseDeclaration("array[String]") should be (Some("List[String]"))
}
/*
* swagger int is turned into scala Int
*/

View File

@ -64,7 +64,6 @@ class ResourceListingValidationTest extends FlatSpec with ShouldMatchers {
}
case _ => fail("didn't parse the underlying apis")
}
println(SwaggerSerializers.validationMessages)
SwaggerSerializers.validationMessages.size should be (1)
}
}