Skip to content

Commit 0c8e766

Browse files
committed
Reproduce issue in test
the entryName should not appear as a required field branch:
1 parent 778c056 commit 0c8e766

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/scala/com/github/swagger/enumeratum/converter/ModelPropertyParserTest.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ class ModelPropertyParserTest extends AnyFlatSpec with Matchers with OptionValue
7373
val model = findModel(schemas, "ModelWCtxEnum")
7474
model should be(defined)
7575
model.get.getProperties should not be (null)
76+
7677
val field = model.value.getProperties.get("field")
7778
field shouldBe a[StringSchema]
79+
field.asInstanceOf[StringSchema].getRequired shouldBe Seq.empty
80+
7881
val schema = field.asInstanceOf[StringSchema]
7982
schema.getDescription shouldEqual (null)
8083
schema.getDefault should be(null)

0 commit comments

Comments
 (0)