Skip to content

Embedded structs are not being serialized. #21

Open
@xomaczar

Description

@xomaczar
type Foo struct {
     Name      string    `jsonapi:"attr,name"`
     CreatedOn time.Time `jsonapi:"attr,createdOn"`
}

type Bar struct {
     Foo    
     ID   string `jsonapi:"primary,bars"`
     Last string `jsonapi:"attr,last"`
}

Marshaling Bar struct, ignores embedded fields from Foo (i.e. name, createdOn)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions