Skip to content

Commit

Permalink
remove unnecessary config validations
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Sep 25, 2020
1 parent 3093425 commit 3ee558e
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions src/legacy/server/config/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ export default () =>
prod: Joi.boolean().default(Joi.ref('$prod')),
}).default(),

dev: Joi.object({
basePathProxyTarget: Joi.number().default(5603),
}).default(),

dev: HANDLED_IN_NEW_PLATFORM,
pid: HANDLED_IN_NEW_PLATFORM,

csp: HANDLED_IN_NEW_PLATFORM,

server: Joi.object({
Expand Down Expand Up @@ -125,10 +121,7 @@ export default () =>

ops: Joi.object({
interval: Joi.number().default(5000),
cGroupOverrides: Joi.object().keys({
cpuPath: Joi.string().default(),
cpuAcctPath: Joi.string().default(),
}),
cGroupOverrides: HANDLED_IN_NEW_PLATFORM,
}).default(),

// still used by the legacy i18n mixin
Expand All @@ -139,15 +132,8 @@ export default () =>
}).default(),

path: HANDLED_IN_NEW_PLATFORM,

stats: Joi.object({
maximumWaitTimeForAllCollectorsInS: Joi.number().default(60),
}).default(),

status: Joi.object({
allowAnonymous: Joi.boolean().default(false),
}).default(),

stats: HANDLED_IN_NEW_PLATFORM,
status: HANDLED_IN_NEW_PLATFORM,
map: HANDLED_IN_NEW_PLATFORM,

i18n: Joi.object({
Expand All @@ -163,8 +149,5 @@ export default () =>
autocompleteTimeout: Joi.number().integer().min(1).default(1000),
}).default(),

savedObjects: Joi.object({
maxImportPayloadBytes: Joi.number().default(10485760),
maxImportExportSize: Joi.number().default(10000),
}).default(),
savedObjects: HANDLED_IN_NEW_PLATFORM,
}).default();

0 comments on commit 3ee558e

Please sign in to comment.