From daceea8667a74e73533d9db1331a47c7253f8364 Mon Sep 17 00:00:00 2001 From: umutcakirai Date: Fri, 10 Jul 2026 13:04:09 +0300 Subject: [PATCH] Add hi, pl, ko to JSON Schema language maps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The schema was added before the Hindi (73b0c68) and Polish/Korean (118e4bd) instructions landed, so languageMap and languageStepsMap still only declared en, es, it, tr, ru, zh. All 1,324 records carry all nine languages and the README documents nine, but `additionalProperties` let hi/pl/ko through unvalidated and unrequired — a record silently missing them still passed validation. Declare all nine in `properties` and `required` for both maps. Verified: the 1,324 records validate cleanly against the updated schema, and a record missing hi/pl/ko is now rejected. --- data/exercises.schema.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/data/exercises.schema.json b/data/exercises.schema.json index 33b4b5b..2b60042 100644 --- a/data/exercises.schema.json +++ b/data/exercises.schema.json @@ -17,9 +17,12 @@ "it": { "type": "string" }, "tr": { "type": "string" }, "ru": { "type": "string" }, - "zh": { "type": "string" } + "zh": { "type": "string" }, + "hi": { "type": "string" }, + "pl": { "type": "string" }, + "ko": { "type": "string" } }, - "required": ["en", "es", "it", "tr", "ru", "zh"], + "required": ["en", "es", "it", "tr", "ru", "zh", "hi", "pl", "ko"], "additionalProperties": { "type": "string" } }, "languageStepsMap": { @@ -31,9 +34,12 @@ "it": { "$ref": "#/$defs/steps" }, "tr": { "$ref": "#/$defs/steps" }, "ru": { "$ref": "#/$defs/steps" }, - "zh": { "$ref": "#/$defs/steps" } + "zh": { "$ref": "#/$defs/steps" }, + "hi": { "$ref": "#/$defs/steps" }, + "pl": { "$ref": "#/$defs/steps" }, + "ko": { "$ref": "#/$defs/steps" } }, - "required": ["en", "es", "it", "tr", "ru", "zh"], + "required": ["en", "es", "it", "tr", "ru", "zh", "hi", "pl", "ko"], "additionalProperties": { "$ref": "#/$defs/steps" } }, "steps": {