Skip to content

Conversation

@michael-dm
Copy link
Contributor

Summary

  • Add missing subServiceContent.push(subService.content) in rustServiceFromSchema to include nested service struct definitions in the generated output

Problem

When using nested service namespaces (e.g., v1.updates, v1.registry), the generated Rust code references child service types but never defines them, causing compilation errors.

Fixes #187

Add missing `subServiceContent.push(subService.content)` in
rustServiceFromSchema to include nested service struct definitions
in the generated output.

Fixes modiimedia#187
@joshmossas
Copy link
Member

joshmossas commented Dec 9, 2025

Thanks for opening this. LGTM.

I'm going to open a separate PR that includes nested subservices in our integration test suite so that all language generators get tested for this scenario.

@joshmossas joshmossas merged commit 8c63bcb into modiimedia:master Dec 9, 2025
5 checks passed
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.

Rust codegen: nested service struct definitions not emitted

2 participants