mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Merge 362773a4b351376499d2b669ba4f4da4d2af3bf3 into d6c46342693205f0dae441b45742d9c85d41cf33
This commit is contained in:
commit
a5aad12923
@ -2,7 +2,6 @@ package org.openapitools.codegen.languages;
|
||||
|
||||
import com.google.common.collect.Sets;
|
||||
import io.swagger.v3.oas.models.Operation;
|
||||
import io.swagger.v3.oas.models.media.ComposedSchema;
|
||||
import io.swagger.v3.oas.models.media.Schema;
|
||||
import io.swagger.v3.oas.models.media.StringSchema;
|
||||
import io.swagger.v3.oas.models.servers.Server;
|
||||
@ -593,7 +592,7 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
|
||||
|
||||
// Handle composed properties and it's NOT allOf with a single ref only
|
||||
if (ModelUtils.isComposedSchema(p) && !(ModelUtils.isAllOf(p) && p.getAllOf().size() == 1)) {
|
||||
ComposedSchema composed = (ComposedSchema) p;
|
||||
Schema<Object> composed = (Schema<Object>) p;
|
||||
|
||||
// Count the occurrences of allOf/anyOf/oneOf with exactly one child element
|
||||
long count = Stream.of(composed.getAllOf(), composed.getAnyOf(), composed.getOneOf())
|
||||
|
Loading…
x
Reference in New Issue
Block a user