From 4ad7a3ae917c888f267463fd3d5b839439cf40e6 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Wed, 4 Aug 2021 10:42:38 +0000 Subject: [PATCH] config: Add developmentMode to schema Add a `developmentMode` configuration variable to the schema. Do not expose this on the device target state until local key-based authentication is sorted. Relates-to: https://jel.ly.fish/e9525e9e-aa74-478c-b931-52951c679f78 Change-type: patch Signed-off-by: Alex Gonzalez --- src/config/schema-type.ts | 4 ++++ src/config/schema.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/config/schema-type.ts b/src/config/schema-type.ts index 9660d29f..8ffd6d70 100644 --- a/src/config/schema-type.ts +++ b/src/config/schema-type.ts @@ -170,6 +170,10 @@ export const schemaTypes = { type: PermissiveBoolean, default: true, }, + developmentMode: { + type: PermissiveBoolean, + default: false, + }, // Function schema types // The type should be the value that the promise resolves diff --git a/src/config/schema.ts b/src/config/schema.ts index 90b687bc..ae7d4003 100644 --- a/src/config/schema.ts +++ b/src/config/schema.ts @@ -79,6 +79,11 @@ export const schema = { mutable: false, removeIfNull: false, }, + developmentMode: { + source: 'config.json', + mutable: true, + removeIfNull: false, + }, name: { source: 'db',