Skip to content

Ensure generated code only uses FoundationEssentials#3

Merged
iabudiab merged 6 commits into
swiftkube:mainfrom
t089:foundation-essentials
Apr 27, 2026
Merged

Ensure generated code only uses FoundationEssentials#3
iabudiab merged 6 commits into
swiftkube:mainfrom
t089:foundation-essentials

Conversation

@t089
Copy link
Copy Markdown
Contributor

@t089 t089 commented Apr 15, 2026

The Swift server ecosystem pushes towards using FoundationEssentials where possible to reduce binary sizes.

This PR updates the code generator to import FoundationEssentials where possible.

Tobias Haeberle and others added 6 commits March 29, 2026 16:08
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
TypePrefixes was a Set, so iteration order was non-deterministic. When
io.k8s.api. was tried before io.k8s.api.apiserver, refs like
io.k8s.api.apiserverinternal.* got sanitized incorrectly, causing
key mismatches in the OpenAPI processor. Changed to an ordered array
sorted longest-first.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@iabudiab
Copy link
Copy Markdown
Member

@t089 I see you've found your way around the quirks in this repo 😄

Thanks. Yes it makes sense to rely only on Essentials

@iabudiab iabudiab merged commit 854d02b into swiftkube:main Apr 27, 2026
1 check 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