Skip to content

Add CaseIterable conformance for string, int enums#559

Merged
czechboy0 merged 2 commits into
apple:mainfrom
PARAIPAN9:paraipan-548-Generated-enums-should-conform-to-CaseIterable
Apr 3, 2024
Merged

Add CaseIterable conformance for string, int enums#559
czechboy0 merged 2 commits into
apple:mainfrom
PARAIPAN9:paraipan-548-Generated-enums-should-conform-to-CaseIterable

Conversation

@PARAIPAN9
Copy link
Copy Markdown
Contributor

Motivation

Modifications

  • Add another value in conformances array.

Result

  • String and Int generated enums will conform by default to CaseIterable protocol.

Test Plan

  • Adjust OpenAPIGeneratorReferenceTests.

@czechboy0
Copy link
Copy Markdown
Contributor

@swift-server-bot test this please

@czechboy0
Copy link
Copy Markdown
Contributor

Ah let me look at that failing compat test in a separate PR, I don't believe this was caused by your PR.

@PARAIPAN9
Copy link
Copy Markdown
Contributor Author

Yes that was strange, I was already trying to figure out why the test is failing.

@czechboy0
Copy link
Copy Markdown
Contributor

@swift-server-bot test this please

@czechboy0 czechboy0 merged commit 8226ced into apple:main Apr 3, 2024
@czechboy0 czechboy0 added the 🆕 semver/minor Adds new public API. label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants