Fix validation for query preview endpoint
This commit is contained in:
parent
a557d325a5
commit
7bab54b43c
|
@ -33,6 +33,9 @@ exports.generateQueryPreviewValidation = () => {
|
||||||
return joiValidator.body(Joi.object({
|
return joiValidator.body(Joi.object({
|
||||||
fields: Joi.object().required(),
|
fields: Joi.object().required(),
|
||||||
queryVerb: Joi.string().allow().required(),
|
queryVerb: Joi.string().allow().required(),
|
||||||
|
name: Joi.string().required(),
|
||||||
|
flags: Joi.object().optional(),
|
||||||
|
schema: Joi.object().optional(),
|
||||||
extra: Joi.object().optional(),
|
extra: Joi.object().optional(),
|
||||||
datasourceId: Joi.string().required(),
|
datasourceId: Joi.string().required(),
|
||||||
transformer: Joi.string().optional(),
|
transformer: Joi.string().optional(),
|
||||||
|
|
Loading…
Reference in New Issue