1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-09 07:20:05 +00:00

refactor: specs + cleanup

This commit is contained in:
Saad Jutt
2021-11-14 00:48:22 +05:00
parent 2bb10c7166
commit f2e50eb4cc
15 changed files with 130 additions and 14420 deletions

View File

@@ -81,5 +81,5 @@ export const executeProgramRawValidation = (data: any): Joi.ValidationResult =>
Joi.object({
_program: Joi.string().required()
})
.pattern(/^/, Joi.string())
.pattern(/^/, Joi.alternatives(Joi.string(), Joi.number()))
.validate(data)