From 900fb7d706e850fa5d464afb850caace11c91bf0 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Mon, 9 Oct 2023 14:23:25 -0500 Subject: [PATCH] =?UTF-8?q?fix(common):=20fix=20schema=20fixer=20?= =?UTF-8?q?=F0=9F=99=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - keyboardTest3 didn't get a fix that had applied to keyboard[3] - regenerate using the exact same CLDR Fixes: #9683 --- .../ldml-keyboards/techpreview/cldr_info.json | 2 +- .../ldml-keyboards/techpreview/fixup-schema.js | 6 ++++++ .../techpreview/ldml-keyboardtest3.schema.json | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/standards-data/ldml-keyboards/techpreview/cldr_info.json b/resources/standards-data/ldml-keyboards/techpreview/cldr_info.json index 4aa4c253864..e9907a447a3 100644 --- a/resources/standards-data/ldml-keyboards/techpreview/cldr_info.json +++ b/resources/standards-data/ldml-keyboards/techpreview/cldr_info.json @@ -1,5 +1,5 @@ { "sha": "2aa2275158c29e8e41c7f0b67c8fb786a453b89c", "description": "release-44-alpha3-14-g2aa2275158", - "date": "Thu, 28 Sep 2023 17:49:50 +0000" + "date": "Mon, 09 Oct 2023 19:18:13 +0000" } diff --git a/resources/standards-data/ldml-keyboards/techpreview/fixup-schema.js b/resources/standards-data/ldml-keyboards/techpreview/fixup-schema.js index 84f00f6711a..e1a2d1f393a 100644 --- a/resources/standards-data/ldml-keyboards/techpreview/fixup-schema.js +++ b/resources/standards-data/ldml-keyboards/techpreview/fixup-schema.js @@ -80,6 +80,12 @@ if (data.title.endsWith('ldmlKeyboard3.xsd')) { } } +if (data.title.endsWith('ldmlKeyboardTest3.xsd')) { + if (data?.properties?.keyboardTest3) { + data.properties.keyboardTest3.type = 'object'; + } +} + // Write stuff const outstr = JSON.stringify(data, null, " "); writeFileSync(argv[2] || 1, outstr, "utf-8"); diff --git a/resources/standards-data/ldml-keyboards/techpreview/ldml-keyboardtest3.schema.json b/resources/standards-data/ldml-keyboards/techpreview/ldml-keyboardtest3.schema.json index cbf09b39d5b..476574112be 100644 --- a/resources/standards-data/ldml-keyboards/techpreview/ldml-keyboardtest3.schema.json +++ b/resources/standards-data/ldml-keyboards/techpreview/ldml-keyboardtest3.schema.json @@ -210,7 +210,8 @@ "required": [ "info", "conformsTo" - ] + ], + "type": "object" } }, "required": [