old_contents: 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(),
  });
  
  
new_contents: import Joi from 'joi';
  
  export const querySchema = Joi.object({
  	endpoint: Joi.string().required(),
  	ref: Joi.string().required(),
  	flags: Joi.array(),
  	mockResponse: Joi.object(),
  	params: Joi.object(),
  	type: Joi.string(),
  });
  
  
subject: add mockResponse to query validation