Created the patchProjectValidation in the project.ts validation
This commit is contained in:
parent
4eaf23fd78
commit
fd907dad2a
@ -2,4 +2,14 @@ import Joi from "joi";
|
||||
|
||||
export const projectCreationValidation = Joi.object({
|
||||
name: Joi.string().alphanum().min(3).max(15).required()
|
||||
});
|
||||
|
||||
export const patchProjectValidation = Joi.object({
|
||||
name: Joi.string().alphanum().min(3).max(15),
|
||||
defaults: Joi.object({
|
||||
licenseKey: Joi.string(),
|
||||
groups: Joi.array(),
|
||||
permissions: Joi.array(),
|
||||
expirationDate: Joi.date()
|
||||
})
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user