flickr/flickr-sdk

Can't pass integer extra params

jeremen opened this issue · 1 comments

For example:

flickr.request().media().search(term).get({
      per_page: 10
}).then(response => {
      console.log(response);
});

Will result in: Param per_page with type integer not of the expected type: number

Yep, this is because the schema specifies both "number" and "integer" as types whereas the validator will convert all javascript numbers to "integer" as its type. Perhaps just relax the validator a bit and not differentiate between number and integer (presuming number means any number - not just whole numbers) or alternatively actually check if a number .isInteger()