mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
fixed formats
This commit is contained in:
parent
8b5e638409
commit
61a9cc6e6a
@ -39,7 +39,7 @@ class ModelRefSerializationTest extends FlatSpec with ShouldMatchers {
|
||||
|
||||
@RunWith(classOf[JUnitRunner])
|
||||
class ModelPropertySerializationTest extends FlatSpec with ShouldMatchers {
|
||||
implicit val formats = DefaultFormats + new AllowableValuesSerializer + new ModelPropertySerializer
|
||||
implicit val formats = DefaultFormats + new AllowableValuesSerializer + new ModelPropertySerializer + new ModelRefSerializer
|
||||
|
||||
it should "deserialize a model property with allowable values and ref" in {
|
||||
val jsonString = """
|
||||
@ -68,7 +68,7 @@ class ModelPropertySerializationTest extends FlatSpec with ShouldMatchers {
|
||||
case _ => fail("expected allowable values")
|
||||
}
|
||||
p.items match {
|
||||
case e: ModelRef => {
|
||||
case Some(e: ModelRef) => {
|
||||
e.ref should be ("Foo")
|
||||
e.`type` should be ("Bar")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user