Skip to content

fix: relax ip type enum and apps frontend preset requests for live deserialization#37

Merged
RAprogramm merged 1 commit into
mainfrom
36
Jun 30, 2026
Merged

fix: relax ip type enum and apps frontend preset requests for live deserialization#37
RAprogramm merged 1 commit into
mainfrom
36

Conversation

@RAprogramm

Copy link
Copy Markdown
Owner

Closes #36.

Two spec defects broke live deserialization in downstream clients (found while auditing twc-rs CLI parity against the live API):

Command Error Fix
database list unknown variant ipv_4, expected ipv4oripv6`` relax the ip type enum to an open string — the API returns the malformed ipv_4 on database-cluster/balancer/vds/server-ip networks
apps list-presets missing field requests`` drop requests from apps-presets.frontend_presets.items required — the live API never sends it (6/6 frontend; the backend schema does not require it either)

Both fixed in openapi/normalize_spec.py and the client regenerated with the pinned generator (7.22.0); the diff is limited to 6 model files. Verified live: database list returns rows and apps list-presets returns presets.

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@RAprogramm RAprogramm merged commit d204134 into main Jun 30, 2026
12 checks passed
@RAprogramm RAprogramm deleted the 36 branch June 30, 2026 22:21
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.

Two live deserialization defects: database networks ipv_4 enum and apps frontend presets requests

1 participant