Skip to content

feat(librarian/swift): default output directory#5024

Merged
coryan merged 5 commits intogoogleapis:mainfrom
coryan:feat-librarian-swift-default-output-directory
Apr 2, 2026
Merged

feat(librarian/swift): default output directory#5024
coryan merged 5 commits intogoogleapis:mainfrom
coryan:feat-librarian-swift-default-output-directory

Conversation

@coryan
Copy link
Copy Markdown
Contributor

@coryan coryan commented Apr 2, 2026

Librarian needs to compute the default output directory for an API. For Swift, I am selecting the full path of the API, as we do in most languages. The librarian.yaml file will include a prefix, such as generated/.

Librarian needs to compute the default output directory for an API. For
Swift, I am selecting the full path of the API, as we do in most
languages. The `librarian.yaml` file will include a prefix, such as
`generated/`.
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 Swift language support to the librarian by implementing the DefaultOutput function and its associated tests. The review feedback focuses on improving code clarity by renaming parameters to match the API-centric naming used in other languages, ensuring Go documentation follows standard formatting conventions, and aligning the test suite with the project's style guide by utilizing cmp.Diff for assertions.

@coryan coryan marked this pull request as ready for review April 2, 2026 21:09
@coryan coryan requested a review from a team as a code owner April 2, 2026 21:09
@coryan
Copy link
Copy Markdown
Contributor Author

coryan commented Apr 2, 2026

/gemini review

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 adds Swift support for default output path generation by implementing the DefaultOutput function and integrating it into the librarian's generation logic. The changes include a new swift package with associated unit tests. The review feedback recommends refactoring the table-driven tests to define the test cases directly within the loop range clause, consistent with the repository's Go style guide.

@coryan coryan enabled auto-merge (squash) April 2, 2026 23:08
@coryan coryan merged commit 64cf522 into googleapis:main Apr 2, 2026
17 checks passed
@coryan coryan deleted the feat-librarian-swift-default-output-directory branch April 2, 2026 23:39
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.

3 participants