Skip to content

feat(sidekick/swift): generate empty enums#5262

Merged
coryan merged 1 commit intogoogleapis:mainfrom
coryan:feat-support-basic-enums
Apr 10, 2026
Merged

feat(sidekick/swift): generate empty enums#5262
coryan merged 1 commit intogoogleapis:mainfrom
coryan:feat-support-basic-enums

Conversation

@coryan
Copy link
Copy Markdown
Contributor

@coryan coryan commented Apr 9, 2026

For package-level enums this generates the correct file with the copyright boilerplate and an empty enum. A future PR will add the missing enum values.

Fixes #5261

For package-level enums this generates the correct file with the
copyright boilerplate and an empty enum. A future PR will add the
missing enum values.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for generating Swift enums by adding the necessary annotation logic, template files, and integration into the generation pipeline. I have provided feedback suggesting that the annotateEnum function be refactored to return an error instead of modifying the object in-place, which improves clarity and aligns with idiomatic Go practices.

Comment thread internal/sidekick/swift/annotate_enum.go
Comment thread internal/sidekick/swift/annotate_model.go
@coryan coryan marked this pull request as ready for review April 9, 2026 22:22
@coryan coryan requested a review from a team as a code owner April 9, 2026 22:22
@coryan coryan merged commit eb7c26b into googleapis:main Apr 10, 2026
19 of 20 checks passed
@coryan coryan deleted the feat-support-basic-enums branch April 10, 2026 13:09
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.

sidekick: generate swift enums

2 participants