Skip to content

feat(swift): qualify external package types in module conversions - #7240

Merged
nolanleastin merged 2 commits into
googleapis:mainfrom
nolanleastin:neastin/storage-admin-qualify-extensions
Aug 10, 2026
Merged

nolanleastin merged 2 commits into
googleapis:mainfrom
nolanleastin:neastin/storage-admin-qualify-extensions

Conversation

@nolanleastin

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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 updates the 'externalTypePrefix' function in 'internal/sidekick/swift/field_type_name.go' to correctly determine when to apply a module namespace prefix in Swift target generation, specifically handling cases where the package matches the model's package name and verifying module target library names. Additionally, a comprehensive unit test 'TestAnnotateMessage_ParameterTypeName_Qualification' has been added to 'internal/sidekick/swift/annotate_message_test.go' to validate local, nested, external, and module-level parameter type name qualifications. There are no review comments, so I have no feedback to provide.

@nolanleastin
nolanleastin marked this pull request as ready for review August 10, 2026 23:08
@nolanleastin
nolanleastin requested a review from a team as a code owner August 10, 2026 23:08
@nolanleastin
nolanleastin force-pushed the neastin/storage-admin-qualify-extensions branch from c8b05be to 209bca2 Compare August 10, 2026 23:09
@nolanleastin
nolanleastin enabled auto-merge (squash) August 10, 2026 23:09
@nolanleastin
nolanleastin disabled auto-merge August 10, 2026 23:11
@nolanleastin
nolanleastin merged commit 23f3754 into googleapis:main Aug 10, 2026
40 checks passed
@nolanleastin
nolanleastin deleted the neastin/storage-admin-qualify-extensions branch August 10, 2026 23:31
JoeWang1127 pushed a commit that referenced this pull request Aug 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.36.0](v0.35.0...v0.36.0)
(2026-08-11)


### Features

* **internal/librarian/php:** add google-cloud-php/dev as a tool to
install ([#7122](#7122))
([97ed7e2](97ed7e2))
* **sidekick/impl:** use `GoogleCloudGax._HTTPClient`
([#7237](#7237))
([7e0dc84](7e0dc84))
* **swift:** qualify external package types in module conversions
([#7240](#7240))
([23f3754](23f3754))


### Bug Fixes

* **internal/librarian/php:** remove --side_loaded_root_dir option in
install ([#7141](#7141))
([bf82078](bf82078))
* **sidekick/rust:** BQ query creation metadata not checking skip field
id ([#7232](#7232))
([bda2a49](bda2a49))
* **sidekick/swift:** correct doc links for services
([#7236](#7236))
([f421d6c](f421d6c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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.

2 participants