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

ignore non-odata parameters #52

Open
katlimruiz opened this issue Dec 12, 2018 · 0 comments
Open

ignore non-odata parameters #52

katlimruiz opened this issue Dec 12, 2018 · 0 comments

Comments

@katlimruiz
Copy link

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.

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