mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
23 lines
580 B
JavaScript
23 lines
580 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const joi = require('joi');
|
||
|
const { nameType } = require('./util');
|
||
|
|
||
|
const applicationSchema = joi
|
||
|
.object()
|
||
|
.options({ stripUnknown: false })
|
||
|
.keys({
|
||
|
appName: nameType,
|
||
|
sdkVersion: joi.string().optional(),
|
||
|
strategies: joi
|
||
|
.array()
|
||
|
.required()
|
||
|
.items(joi.string(), joi.any().strip()),
|
||
|
description: joi.string().optional(),
|
||
|
url: joi.string().optional(),
|
||
|
color: joi.string().optional(),
|
||
|
icon: joi.string().optional(),
|
||
|
});
|
||
|
|
||
|
module.exports = applicationSchema;
|