Skip to content

Add dependency-aware types file splitting - #948

Closed
nac5504 wants to merge 2 commits into
apple:mainfrom
nac5504:nick/oss-dependency-layers-v2
Closed

Add dependency-aware types file splitting#948
nac5504 wants to merge 2 commits into
apple:mainfrom
nac5504:nick/oss-dependency-layers-v2

Conversation

@nac5504

@nac5504 nac5504 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • split generated types files by declaration count
  • group schema declarations into deterministic dependency-ordered layers
  • preserve existing unsplit output when the new output settings are not configured

Validation

  • full Swift package test suite
  • file-based Petstore reference tests
  • 17-spec compatibility suite, including GitHub Enterprise and Kubernetes
  • downstream Ramp iOS clean Debug and distribution builds

Nick Candello added 2 commits August 31, 2026 12:33
Add the optional output.maxDeclarationsPerFile setting for further splitting declaration-bearing types namespace files into numbered extensions. Preserve the default namespace layout when unset, keep parent files responsible for namespace declarations, reject dynamic outputs in the build-tool plugin, and add documentation, focused tests, and updated Petstore references.
@nac5504

nac5504 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Closing this upstream draft; the work will remain as a stacked draft in the fork.

@nac5504 nac5504 closed this Sep 4, 2026
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.

1 participant