Skip to content

Commit 6a6ebe3

Browse files
Mad code
1 parent 32fbfb7 commit 6a6ebe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/scala/za/co/absa/springdocopenapiscala/OpenAPIModelRegistration.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class OpenAPIModelRegistration(
192192
// - case objects = registered as reference
193193
// - sealed trait/abstract class = registered as reference
194194
val childrenRefs = children.map(s => (new Schema).$ref(s.name.toString.trim)).toSeq
195-
val schema = new ObjectSchema
195+
val schema = new Schema
196196
schema.setOneOf(childrenRefs.asJava)
197197
val schemaRef = registerAsReference(name, schema)
198198
children.map(_.asType.toType).foreach(handleType)

0 commit comments

Comments
 (0)