1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/lib/services/project-schema.js

18 lines
419 B
JavaScript
Raw Normal View History

const joi = require('joi');
const { nameType } = require('../routes/admin-api/util');
const projectSchema = joi
.object()
.keys({
id: nameType,
name: joi.string().required(),
description: joi
.string()
.allow(null)
.allow('')
.optional(),
})
.options({ allowUnknown: false, stripUnknown: true });
module.exports = projectSchema;