mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 06:00:52 +00:00
fixes for inner types, spec 1.2 conversion
This commit is contained in:
parent
c386edb2e4
commit
a7bf8b6314
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user