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

Add omitempty JSON tag to User slice fields #383

Merged
merged 1 commit into from
Nov 14, 2021
Merged

Add omitempty JSON tag to User slice fields #383

merged 1 commit into from
Nov 14, 2021

Conversation

theckman
Copy link
Collaborator

These fields aren't actually updated by posting a User object (partial or full)
to the REST API, as other REST endpoints are used to mutate that data. As such,
there really isn't a reason to send these fields on any outbound requests that
make use of the User struct.

Closes #343

These fields aren't actually updated by posting a User object (partial or full)
to the REST API, as other REST endpoints are used to mutate that data. As such,
there really isn't a reason to send these fields on any outbound requests that
make use of the `User` struct.

Closes #343
@theckman theckman added this to the v1.5.0 milestone Nov 12, 2021
Copy link
Contributor

@stmcallister stmcallister left a comment

Choose a reason for hiding this comment

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

Makes sense. Thank you! 👍

@theckman theckman merged commit 68e59e4 into master Nov 14, 2021
@theckman theckman deleted the issue_343 branch November 14, 2021 00:35
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.

User slice fields missing omitempty
2 participants