Skip to content

Conversation

@socksy
Copy link
Contributor

@socksy socksy commented Sep 30, 2025

@bradhe looks like we were working on this simultaneously. I made a couple small changes to the generation (formatting and default values on nulls), and rebased on yours

When we see a null value for a required field, the generated code will
now instruct serde to give it the default value (e.g. "" for string, []
for array, etc). This may be nonsense, of course, but it's less likely
to be nonsense than "null", and makes the CLI a whole lot less brittle
to bugs on the backend - a single null value shouldn't kill the rest of
a response!
@socksy socksy requested a review from bradhe September 30, 2025 11:51
Copy link
Contributor

@bradhe bradhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look like good additions, let's add them in.

@socksy socksy merged commit 73510eb into develop Sep 30, 2025
5 checks passed
@socksy socksy deleted the ben/update-generated-client-2025-09 branch September 30, 2025 12:23
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.

3 participants