You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
There are conditions where a model is used in different circumstances, for different responses, and a field may be present, or not present depending on the circumstance. Standard library supports the omitempty and - tokens in the json:"" tag. It would be great to offer the same thing here.
Maybe a third value can be passed: jsonapi:"attr,myfield,omitempty" or something of the sort.