You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've a few badges which validate query params by invoking _validateQueryParams on BaseService.
If we provided the route with a Joi schema instead of an array of names, we could validate these within BaseService instead – i.e. prior to invoking handle().
If #2675 hasn't been completed yet, we could use a placeholder Joi.object().required() for those services in the meantime.
The text was updated successfully, but these errors were encountered:
paulmelnikow
changed the title
Build query param validation into BaseService
Perform query param validation within BaseService
Jan 7, 2019
This is a mid-sized PR that adds query param validation to BaseService and updates most of the services which use query param validation to use it. There are a couple minor tweaks I made along the way.
Fix#2676
We've a few badges which validate query params by invoking
_validateQueryParams
on BaseService.If we provided the route with a Joi schema instead of an array of names, we could validate these within BaseService instead – i.e. prior to invoking
handle()
.If #2675 hasn't been completed yet, we could use a placeholder
Joi.object().required()
for those services in the meantime.The text was updated successfully, but these errors were encountered: