-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
featureNew functionality or improvementNew functionality or improvement
Description
Since it's a pretty standard use-case, would it make sense to add a new validation for URI query parameters?
So rather than
var routes = [{
...
validate: {
query: {
type: joi.alternatives().try(
joi.string(),
joi.array().includes(joi.string())
).description('types')
}
}
}];
perhaps
var routes=[{
...
validate:{
query:{
type:joi.uriQueryParam().description('types')
}
}
}];
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew functionality or improvementNew functionality or improvement