Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group filter parameters #147

Merged
merged 2 commits into from
Jul 9, 2021
Merged

Group filter parameters #147

merged 2 commits into from
Jul 9, 2021

Conversation

EarthlingDavey
Copy link
Contributor

This fixes an API error caused by any other parameter in between filter parameters.

Reference: https://forums.developer.ebay.com/questions/14689/error-value-is-required-for-item-filter-listing-ty.html

Error: Value is required for item filter

You're putting sortOrder in between two itemFilter parameters. Put the item filters together, in order. Move sortOrder to a different position.

Goal of the pull request:

  • Documentation
  • Bugfix
  • Feature (New!)
  • Enhancement

Description

A minor change to how constructAdditionalParams concatenates parameters.
It keeps the filter parameters grouped in-case the filter properties of the options object is un-grouped.

This fixes an API error caused by any other parameter in between filter parameters.

Reference: https://forums.developer.ebay.com/questions/14689/error-value-is-required-for-item-filter-listing-ty.html

> Error: Value is required for item filter

> You're putting sortOrder in between two itemFilter parameters. Put the item filters together, in order. Move sortOrder to a different position.
@pajaydev pajaydev merged commit cfc2bc3 into pajaydev:master Jul 9, 2021
@EarthlingDavey EarthlingDavey deleted the patch-2 branch July 10, 2021 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants