Skip to content
Closed
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ The library keeps several legacy knobs for source compatibility, but the Creator
| `PartnerType` (`Associates`) | Explicit body parameter | Ignored. Partner type is implicit |
| `Merchant` | Offer filtering selector | Ignored |
| `OfferCount` | Offer summary limiter | Ignored |
| `EnableVariationSummary()` | Requested variation summary resource | No-op (resource is not exposed) |

### Marketplace routing precedence

Expand Down
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestClientRequestSendsExpectedHeadersAndBody(t *testing.T) {
if got, want := string(body), `{"hello":"world"}`; got != want {
t.Errorf("api body = %q, want %q", got, want)
}
_, _ = w.Write([]byte(`{"itemsResult":{}}`))
_, _ = w.Write([]byte(`{"itemResults":{}}`))
}

_, _, sv := newServers(t, tokenHandler, apiHandler)
Expand All @@ -128,7 +128,7 @@ func TestClientRequestSendsExpectedHeadersAndBody(t *testing.T) {
if err != nil {
t.Fatalf("RequestContext: %v", err)
}
if got, want := string(body), `{"itemsResult":{}}`; got != want {
if got, want := string(body), `{"itemResults":{}}`; got != want {
t.Errorf("response body = %q, want %q", got, want)
}

Expand Down
3 changes: 1 addition & 2 deletions entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ type Item struct {
ASIN string
ParentASIN string
DetailPageURL string
Score *float64 `json:",omitempty"`
CustomerReviews *struct {
Count *int `json:",omitempty"`
StarRating *struct {
Expand Down Expand Up @@ -329,7 +328,7 @@ type Response struct {
} `json:",omitempty"`
ItemsResult *struct {
Items []Item `json:",omitempty"`
} `json:",omitempty"`
} `json:"itemResults,omitempty"`
SearchResult *struct {
Items []Item `json:",omitempty"`
SearchRefinements *struct {
Expand Down
Loading
Loading