Fix validation for query preview endpoint

This commit is contained in:
Maurits Lourens 2022-02-10 09:25:13 +01:00 committed by mike12345567
parent c27a552d88
commit f86222a98d
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ exports.generateQueryPreviewValidation = () => {
return joiValidator.body(Joi.object({
fields: Joi.object().required(),
queryVerb: Joi.string().allow().required(),
name: Joi.string().required(),
flags: Joi.object().optional(),
schema: Joi.object().optional(),
extra: Joi.object().optional(),
datasourceId: Joi.string().required(),
transformer: Joi.string().optional(),