Skip to content

Commit c3e8dde

Browse files
committed
removed incorrect returns
1 parent 3de89cd commit c3e8dde

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

core/src/main/kotlin/org/evomaster/core/problem/rest/builder/RestActionBuilderV3.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,17 +1427,15 @@ object RestActionBuilderV3 {
14271427
}
14281428

14291429
if (!allOf.isNullOrEmpty() && !anyOf.isNullOrEmpty()){
1430-
messages.add("Cannot handle allOf and oneOf at same time for a schema with name $name")
1431-
return assembleObjectGene(name, options, schema, fields, additionalFieldTemplate, referenceTypeName, examples, messages)
1430+
messages.add("Currently cannot handle allOf and oneOf at same time for a schema with name $name")
14321431
}
14331432

14341433
val oneOf = schema.oneOf?.map { s->
14351434
getGene(name, s, schemaHolder,currentSchema, history, null, options = options, messages = messages)
14361435
}
14371436

14381437
if (!oneOf.isNullOrEmpty() && (!allOf.isNullOrEmpty() || !anyOf.isNullOrEmpty())){
1439-
messages.add("cannot handle oneOf and allOf/oneOf at same time for a schema with name $name")
1440-
return assembleObjectGene(name, options, schema, fields, additionalFieldTemplate, referenceTypeName, examples, messages)
1438+
messages.add("Currently cannot handle oneOf and allOf/oneOf at same time for a schema with name $name")
14411439
}
14421440

14431441
if (!allOf.isNullOrEmpty()){

0 commit comments

Comments
 (0)