forked from loafle/openapi-generator-original
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"))
|
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
|
* swagger int is turned into scala Int
|
||||||
*/
|
*/
|
||||||
|
@ -46,6 +46,13 @@ class BasicScalaGeneratorTest extends FlatSpec with ShouldMatchers {
|
|||||||
config.processResponseDeclaration("string") should be (Some("String"))
|
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
|
* 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")
|
case _ => fail("didn't parse the underlying apis")
|
||||||
}
|
}
|
||||||
println(SwaggerSerializers.validationMessages)
|
|
||||||
SwaggerSerializers.validationMessages.size should be (1)
|
SwaggerSerializers.validationMessages.size should be (1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user