From e637728d0b8ffff837bfe89fee6e6e35d20b4eb6 Mon Sep 17 00:00:00 2001 From: "St. John Johnson" Date: Fri, 18 Aug 2017 16:58:40 -0700 Subject: [PATCH] feat: Allow Multiple-Documents This adds an optional field in the base config to allow us to hint about what version the config is. --- config/base.js | 1 + test/data/config.base.config.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config/base.js b/config/base.js index e4c99a5d..97fd3c2c 100644 --- a/config/base.js +++ b/config/base.js @@ -17,6 +17,7 @@ const SCHEMA_JOBS = Joi.object() const SCHEMA_SHARED = Job.job; const SCHEMA_CONFIG = Joi.object() .keys({ + version: Joi.number().integer().min(1).max(50), annotations: Annotations.annotations, jobs: SCHEMA_JOBS, shared: SCHEMA_SHARED, diff --git a/test/data/config.base.config.yaml b/test/data/config.base.config.yaml index 1bbb04f2..0ce22cae 100644 --- a/test/data/config.base.config.yaml +++ b/test/data/config.base.config.yaml @@ -1,3 +1,5 @@ +version: 4 + shared: environment: NODE_TAG: latest