import Joi from 'joi';

export const querySchema = Joi.object({
	endpoint: Joi.string().required(),
	flags: Joi.array(),
	params: Joi.object(),
	ref: Joi.string().required(),
	type: Joi.string().required(),
});


@@ -93,16 +93,47 @@
 ired(),%0A
+%09ref: Joi.string().required(),%0A
 %09flags: 
@@ -150,14 +150,20 @@
 ),%0A%09
-params
+mockResponse
 : Jo
@@ -179,34 +179,26 @@
 ),%0A%09
-ref: Joi.string().required
+params: Joi.object
 (),%0A
@@ -216,26 +216,15 @@
 string()
-.required()
 ,%0A%7D);%0A%0A

add mockResponse to query validation