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.

ignore non-odata parameters #52

@katlimruiz

Description

@katlimruiz
var parser = require("odata-parser");
var ast = parser.parse("myparam=3&$top=10&$skip=5&$select=foo")
console.log(ast)

SyntaxError: Expected "$", "$callback=", "$expand=", "$filter=", "$format=", "$inlinecount=", "$orderby=", "$select=", "$skip=" or "$top=" but "m" found.

Indeed sending non-odata parameters could be as a no-no and non conforming to the standard, but I think if you could add a "strict:true/false" parameter when parsing might work towards making it more flexible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions