From 799e2910c3e264f616b30e4d27dc9cb1c0957235 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 28 Apr 2024 11:07:51 +0200 Subject: [PATCH] Add error message on common typo in layerconfigs, fix #1928 --- src/Models/ThemeConfig/Conversion/Validation.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Models/ThemeConfig/Conversion/Validation.ts b/src/Models/ThemeConfig/Conversion/Validation.ts index 9d56090f1..2e798962e 100644 --- a/src/Models/ThemeConfig/Conversion/Validation.ts +++ b/src/Models/ThemeConfig/Conversion/Validation.ts @@ -1647,6 +1647,10 @@ export class ValidateLayer extends Conversion< } } + if(json.allowMove?.["enableAccuraccy"] !== undefined){ + context.enters("allowMove", "enableAccuracy").err("`enableAccuracy` is written with two C in the first occurrence and only one in the last") + } + return { raw: json, parsed: layerConfig } } }