Skip to content

Swift generation: Conforming enums to the CaseIterable protocol #12539

@georgiosantoniadis

Description

@georgiosantoniadis

We are currently using swagger-codegen (version 3.0.68) to generate Swift classes from an OpenApi specification. We noticed that the generated enums are not (yet?) conforming to the CaseIterable protocol: https://developer.apple.com/documentation/swift/caseiterable

For Swift developers this addition would provide a lot of value.

Is there already an existing flag we could use for the existing generator? If not, we would be pleased if you could plan this as a new feature.

Thank you very much
George

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