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

agnostic: default putRecord to not include swapRecord field #935

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bnewbold
Copy link
Collaborator

The root issue here is "nullable and optional" not being easy to express with default golang struct marshaling. The result is this swap field getting set, but as null, which prevents actual updates (only allows creation).

This PR swaps to omitting the field. Makes it impossible to do a forced swap check of nil... but can just use create for that?

The root issue here is "nullable and optional" not being easy to express
with default golang struct marshaling. The result is this swap field
getting set, but as null, which prevents actual updates (only allows
creation).

This PR swaps to omitting the field. Makes it impossible to do a forced
swap check of nil... but can just use create for that?
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.

1 participant