mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
12 lines
321 B
TypeScript
12 lines
321 B
TypeScript
import joi from 'joi';
|
|
import { nameType } from '../routes/util';
|
|
|
|
export const projectSchema = joi
|
|
.object()
|
|
.keys({
|
|
id: nameType,
|
|
name: joi.string().required(),
|
|
description: joi.string().allow(null).allow('').optional(),
|
|
})
|
|
.options({ allowUnknown: false, stripUnknown: true });
|