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.
I have this setup. I read from a json file with has the defaults. Can you see whats wrong? I can see that in UnmarshalPayload after the decode the relation values are not decoded to payload.
package model
type Get struct {
Id int `jsonapi:"primary,get"`
Title string `jsonapi:"attr,title"`
Status string `jsonapi:"attr,status"`
Success *Success `jsonapi:"relation,success"`
}
type Success struct {
Id string `jsonapi:"primary,success"`
Systemtime int `jsonapi:"attr,systemtime"`
}