Skip to content

[swift] make enums conform to CaseIterable#4843

Closed
4brunu wants to merge 1 commit intoOpenAPITools:masterfrom
4brunu:feature/swift_enum_case_interable
Closed

[swift] make enums conform to CaseIterable#4843
4brunu wants to merge 1 commit intoOpenAPITools:masterfrom
4brunu:feature/swift_enum_case_interable

Conversation

@4brunu
Copy link
Contributor

@4brunu 4brunu commented Dec 19, 2019

It would be nice to make the enums conform to CaseIterable protocol for the Swift compiler to be able to generate a property called allCases that provides an array of all cases in the enum.

This PR fixes #4842

PR checklist

  • Read the contribution guidelines.
  • If contributing template-only or documentation-only changes which will change sample output, build the project before.
  • Run the shell script(s) under ./bin/ (or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh if updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).
  • File the PR against the correct branch: master, 4.3.x, 5.0.x. Default: master.
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.

@jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11)

@4brunu
Copy link
Contributor Author

4brunu commented Jan 2, 2020

Close in favor of #4086

@4brunu 4brunu closed this Jan 2, 2020
@4brunu 4brunu deleted the feature/swift_enum_case_interable branch May 18, 2020 09:38
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

Successfully merging this pull request may close these issues.

[REQ][Swift] make Enum's conform to CaseIterable protocol

1 participant