We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32fbfb7 commit 6a6ebe3Copy full SHA for 6a6ebe3
library/src/main/scala/za/co/absa/springdocopenapiscala/OpenAPIModelRegistration.scala
@@ -192,7 +192,7 @@ class OpenAPIModelRegistration(
192
// - case objects = registered as reference
193
// - sealed trait/abstract class = registered as reference
194
val childrenRefs = children.map(s => (new Schema).$ref(s.name.toString.trim)).toSeq
195
- val schema = new ObjectSchema
+ val schema = new Schema
196
schema.setOneOf(childrenRefs.asJava)
197
val schemaRef = registerAsReference(name, schema)
198
children.map(_.asType.toType).foreach(handleType)
0 commit comments