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

made schema null marshalling consistent #719

Merged
merged 1 commit into from
May 10, 2024

Conversation

brennanjl
Copy link
Collaborator

@brennanjl brennanjl commented May 10, 2024

@KwilLuke commented on inconsistencies for nulls in JSON marshalled schemas. This PR removes omitempty tags to make the marshalling consistent.

We sort've used these randomly so I figured it's not a big deal to just ditch them

Copy link
Contributor

@Yaiba Yaiba left a comment

Choose a reason for hiding this comment

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

If this is a problem for client then I agree the omitempty should be removed

@brennanjl brennanjl merged commit 8ccb37e into kwilteam:main May 10, 2024
1 check passed
@jchappelow jchappelow added this to the v0.8.0 milestone May 13, 2024
@jchappelow
Copy link
Member

jchappelow commented May 13, 2024

Why was this problem for the client? It's dead weight on the wire for some of these in most cases (annotations). Consistency between fields isn't really important IMO. Some are optional, some aren't

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