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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user