Skip to content

codegen: Refactor structure more#5386

Merged
adamw merged 4 commits into
softwaremill:masterfrom
hughsimpson:refactor_codegen_structure_more
Jul 7, 2026
Merged

codegen: Refactor structure more#5386
adamw merged 4 commits into
softwaremill:masterfrom
hughsimpson:refactor_codegen_structure_more

Conversation

@hughsimpson

@hughsimpson hughsimpson commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

In an effort to make the codebase less intimidating, this splits up the files a little more. Most notably, the ~1.3k line EndpointGenerator.scala is partitioned into multiple files in its own package. There's probably a bunch of 'more useful' refactors to be done, like replacing more tuples & common param sets with case classes, but this is still an improvement. We'll get there...

No functionality changes, although the pr to do something where status codes are ambiguous on models had these changes first. It made it a lot easier to find the right bits to touch... (That's still WIP though because the approach isn't very nice to use)

@hughsimpson hughsimpson closed this Jul 7, 2026
@hughsimpson

hughsimpson commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

I'll re-open this later

EDIT: It's later now

@hughsimpson hughsimpson reopened this Jul 7, 2026
@hughsimpson hughsimpson marked this pull request as ready for review July 7, 2026 14:32
@hughsimpson

Copy link
Copy Markdown
Contributor Author

@adamw last one I had queued up I swear

@adamw

adamw commented Jul 7, 2026

Copy link
Copy Markdown
Member

No no, keep them coming :)

@adamw adamw merged commit 09d4194 into softwaremill:master Jul 7, 2026
32 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.

2 participants