8000 Custom types unmarshal fails · Issue #156 · google/jsonapi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Custom types unmarshal fails #156
Open
@vickyramachandra

Description

@vickyramachandra

Hey there,
If i have a struct like this

type Blog struct {
	Id json.Number `jsonapi:"primary,blogs"` // json.Number has unmarshal() impl in encoding/json
}

The value for id will not be mapped into the field. So any custom types which has their own marshal or unmarshal implementation doesn't work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0