Skip to content

OneOf not processed properly in C# generator #16554

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions