Skip to content

OneOf not processed properly in C# generator #16554

@mol-pensiondk

Description

@mol-pensiondk

In https://github.com/OpenAPITools/openapi-generator/blob/78f3b19b58df699ef883b89a7a44531407377719/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java#L530C80-L530C85 the anyOf should be oneOf in the subcondition (model.anyOf != null && model.oneOf.size() > 0), i.e. it should read (model.oneOf != null && model.oneOf.size() > 0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions