Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Bug in $format Parsing #37

Closed
alixaxel opened this issue Sep 29, 2016 · 1 comment
Closed

Bug in $format Parsing #37

alixaxel opened this issue Sep 29, 2016 · 1 comment

Comments

@alixaxel
Copy link

I noticed that if the $format parameter is present, it doesn't respect any potential following parameters:

console.log(oData.parse('$select=foo,bar&$top=10&$format=application/json&$skip=42'));

{
  '$select': [ 'foo', 'bar ],
  '$top': 10,
  '$format': 'application/json&$skip=42'
}

However, if I move $skip to precede $format everything is parsed as expected:

console.log(oData.parse('$select=foo,bar&$top=10&$skip=42&$format=application/json'));

{
  '$select': [ 'foo', 'bar', 'baz' ],
  '$top': 10,
  '$skip': 42,
  '$format': 'application/json'
}
@alixaxel
Copy link
Author

Closing as it's a exact duplicate of #38.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant