Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions jsonhal.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

// Link represents a link in "_links" object
type Link struct {
Href string `json:"href"`
Title string `json:"title,omitempty"`
Href string `json:"href" mapstructure:"href"`
Title string `json:"title,omitempty" mapstructure:"title"`
}

// Embedded represents a resource in "_embedded" object
Expand Down Expand Up @@ -43,8 +43,8 @@ type Embedder interface {

// Hal is used for composition, include it as anonymous field in your structs
type Hal struct {
Links map[string]*Link `json:"_links,omitempty"`
Embedded map[string]Embedded `json:"_embedded,omitempty"`
Links map[string]*Link `json:"_links,omitempty" mapstructure:"_links"`
Embedded map[string]Embedded `json:"_embedded,omitempty" mapstructure:"_embedded"`
decoder *mapstructure.Decoder
}

Expand Down