Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[client codegen] Unknown enumeration values, attempt 2 #135

Merged
merged 6 commits into from
Feb 6, 2025

Conversation

blast-hardcheese
Copy link
Contributor

Why

While technically the previously emitted deserializers were functional, the ergonomics were basically unusable. I fixed the local development flow so I could complete the whole feature end-to-end this time, confirming that it works.

What changed

  • Wrapping unknown enumerator parameters in a newly exposed RiverUnknownValue, emitted via a newly exposed raise_unknown

It would be preferred to have had the Annotated[...] directly on underlying models instead of leaking the unknown status into the top-level enumerations, but that was going to require more surgery.

The client migration from this encoding to that encoding will be very easy.

Test plan

Describe what you did to test this change to a level of detail that allows your reviewer to test it

@blast-hardcheese blast-hardcheese requested a review from a team as a code owner February 6, 2025 00:15
@blast-hardcheese blast-hardcheese requested review from ryantm and removed request for a team February 6, 2025 00:15
@blast-hardcheese blast-hardcheese merged commit e2eba79 into main Feb 6, 2025
3 checks passed
@blast-hardcheese blast-hardcheese deleted the dstewart/enumeration-attempt-2 branch February 6, 2025 19:11
@blast-hardcheese blast-hardcheese added the enhancement New feature or request label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants