File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/test/scala/com/github/swagger/scala/converter Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,17 @@ class ModelPropertyParserTest extends AnyFlatSpec with BeforeAndAfterEach with M
8989 itemSchema.asInstanceOf [IntegerSchema ].getRequired shouldBe null
9090 }
9191
92+ it should " process Seq[Option[Long]] as string" in new PropertiesScope [SeqOptionLong ] {
93+ val values = model.value.getProperties().get(" values" )
94+ values should not be (null )
95+ values shouldBe an[ArraySchema ]
96+ values.getRequired shouldBe null
97+ val itemSchema = values.asInstanceOf [ArraySchema ].getItems
98+ itemSchema shouldBe an[IntegerSchema ]
99+ itemSchema.asInstanceOf [IntegerSchema ].getFormat shouldBe " int64"
100+ itemSchema.asInstanceOf [IntegerSchema ].getRequired shouldBe null
101+ }
102+
92103 it should " process Option[Seq[Option[Long]]] as string" in new PropertiesScope [OptionSeqOptionLong ] {
93104 val values = model.value.getProperties().get(" values" )
94105 values should not be (null )
You can’t perform that action at this time.
0 commit comments