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

[server/validate] respond with all validation errors #11776

Merged
merged 2 commits into from
May 15, 2017

Conversation

spalger
Copy link
Contributor

@spalger spalger commented May 12, 2017

When using route param validation, the default for Joi is currently enabled which stops validating as soon as any error is found. This is fine, but I think showing all errors is better, and it makes routes easier to test.

@spalger spalger added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc review v5.5.0 v6.0.0 labels May 12, 2017
@spalger spalger requested review from kimjoar and jbudz May 12, 2017 22:56
Copy link
Member

@jbudz jbudz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Do you think is useful for config schemas too?

@spalger
Copy link
Contributor Author

spalger commented May 13, 2017

Do you think is useful for config schemas too?

Probably, good point.

@spalger spalger merged commit 866bf5d into elastic:master May 15, 2017
spalger added a commit that referenced this pull request May 15, 2017
* [server/validate] respond with all validation errors

* [server/config] fail with all validation errors

(cherry picked from commit 866bf5d)
snide pushed a commit to snide/kibana that referenced this pull request May 30, 2017
* [server/validate] respond with all validation errors

* [server/config] fail with all validation errors
@spalger spalger deleted the implement/api/more-detailed-errors branch October 18, 2019 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v5.5.0 v6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants