Skip to content

feat(sidekick/swift): support discovery-based modules#6351

Merged
coryan merged 2 commits into
googleapis:mainfrom
coryan:feat-swift-support-discovery-modules
Jun 9, 2026
Merged

feat(sidekick/swift): support discovery-based modules#6351
coryan merged 2 commits into
googleapis:mainfrom
coryan:feat-swift-support-discovery-modules

Conversation

@coryan

@coryan coryan commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

We need to write Swift tests for the discovery-based generated code. In particular, serialization and deserialization of bytes. This is easier to test if we control the discovery doc, and that recommends using a module.

Towards #5748

We need to write Swift tests for the discovery-based generated code. In
particular, serialization and deserialization of bytes. This is easier
to test if we control the discovery doc, and that recommends using a
module.

@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 Swift module generation to support configurable specification formats (such as Discovery) instead of defaulting exclusively to Protobuf. It also refactors the corresponding unit tests to validate the entire ModelConfig struct and adds a test case for the discovery format. The reviewer suggested updating the discovery test case to expect 'discovery' as the active root in SourceConfig to align with the defaulting behavior.

Comment thread internal/librarian/swift/generate_module_test.go
@coryan coryan marked this pull request as ready for review June 9, 2026 21:02
@coryan coryan requested a review from a team as a code owner June 9, 2026 21:02
@coryan coryan enabled auto-merge (squash) June 9, 2026 21:37
@coryan coryan merged commit 09ef5cf into googleapis:main Jun 9, 2026
32 of 34 checks passed
@coryan coryan deleted the feat-swift-support-discovery-modules branch June 10, 2026 00:58
jskeet pushed a commit that referenced this pull request Jun 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.20.0](v0.19.0...v0.20.0)
(2026-06-10)


### Features

* **nodejs:** add a DefaultVersion field to NodeJSPackage
([#6358](#6358))
([af3218f](af3218f))
* **sidekick/rust:** add bigquery code gen
([#6322](#6322))
([a7846f5](a7846f5))
* **sidekick/swift:** non-string maps
([#6361](#6361))
([2b6d7e4](2b6d7e4))
* **sidekick/swift:** support discovery-based modules
([#6351](#6351))
([09ef5cf](09ef5cf))

---
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