Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registered query: type verification of input parameters #215

Open
lukas-vlcek opened this issue Feb 17, 2015 · 0 comments
Open

Registered query: type verification of input parameters #215

lukas-vlcek opened this issue Feb 17, 2015 · 0 comments

Comments

@lukas-vlcek
Copy link
Member

Type verification of input URL parameters will allow to perform needed checks before they are passed into search template. The main benefit is human friendly reporting of invalid input value (as opposed to ugly Exception trace from Elasticsearch).

This is also important from Mustache templating POW, because it can produce different result if a parameter is single valued or an array.

For example take template {{#param}}Hi man!{{/param}}. If the param is single value then it will produce:

Hi Man!

however, if it is an array with say 3 values then it will produce:

Hi Man!Hi Man!Hi Man!
@lukas-vlcek lukas-vlcek added this to the 2.0.1 milestone Feb 17, 2015
@lukas-vlcek lukas-vlcek modified the milestones: 2.0.2, 2.0.1 Apr 21, 2015
@lukas-vlcek lukas-vlcek modified the milestones: 2.0.3, 2.0.2 Jul 2, 2015
@lukas-vlcek lukas-vlcek modified the milestones: 2.1.2, 2.1.1 Sep 3, 2015
@lukas-vlcek lukas-vlcek modified the milestones: 2.1.3, 2.1.2 Oct 5, 2015
@unibrew unibrew modified the milestones: 2.1.3, 2.1.4 Feb 11, 2016
@unibrew unibrew modified the milestones: 2.1.4, 2.1.5 Feb 19, 2016
@lkrzyzanek lkrzyzanek modified the milestone: 2.1.5 Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants