Skip to content

Swift generation: Conforming enums to the CaseIterable protocol #12539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
georgiosantoniadis opened this issue Apr 17, 2025 · 0 comments
Open

Comments

@georgiosantoniadis
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant