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

Bug in $format Parsing #38

Description

@alixaxel

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'
}

Note how $skip is not parsed and is instead concatenated to $format.

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' ],
  '$top': 10,
  '$skip': 42,
  '$format': 'application/json'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions