Removing live prop from JOI def.
This commit is contained in:
parent
a92530f170
commit
b43143f1b7
|
@ -26,7 +26,6 @@ function generateStepSchema(allowStepTypes) {
|
||||||
tagline: Joi.string().required(),
|
tagline: Joi.string().required(),
|
||||||
icon: Joi.string().required(),
|
icon: Joi.string().required(),
|
||||||
params: Joi.object(),
|
params: Joi.object(),
|
||||||
// TODO: validate args a bit more deeply
|
|
||||||
args: Joi.object(),
|
args: Joi.object(),
|
||||||
type: Joi.string().required().valid(...allowStepTypes),
|
type: Joi.string().required().valid(...allowStepTypes),
|
||||||
}).unknown(true)
|
}).unknown(true)
|
||||||
|
@ -35,7 +34,6 @@ function generateStepSchema(allowStepTypes) {
|
||||||
function generateValidator(existing = false) {
|
function generateValidator(existing = false) {
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
return joiValidator.body(Joi.object({
|
return joiValidator.body(Joi.object({
|
||||||
live: Joi.bool(),
|
|
||||||
_id: existing ? Joi.string().required() : Joi.string(),
|
_id: existing ? Joi.string().required() : Joi.string(),
|
||||||
_rev: existing ? Joi.string().required() : Joi.string(),
|
_rev: existing ? Joi.string().required() : Joi.string(),
|
||||||
name: Joi.string().required(),
|
name: Joi.string().required(),
|
||||||
|
|
Loading…
Reference in New Issue