mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
parent
2ec816946f
commit
00ce76f9c5
@ -1,13 +1,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const joi = require('joi');
|
const joi = require('joi');
|
||||||
const { nameType } = require('./util');
|
|
||||||
|
|
||||||
const applicationSchema = joi
|
const applicationSchema = joi
|
||||||
.object()
|
.object()
|
||||||
.options({ stripUnknown: false })
|
.options({ stripUnknown: false })
|
||||||
.keys({
|
.keys({
|
||||||
appName: nameType,
|
appName: joi.string().required(),
|
||||||
sdkVersion: joi.string().optional(),
|
sdkVersion: joi.string().optional(),
|
||||||
strategies: joi
|
strategies: joi
|
||||||
.array()
|
.array()
|
||||||
|
Loading…
Reference in New Issue
Block a user