From d0acec9d8130ef01a92136f0879c28d5d0c57afb Mon Sep 17 00:00:00 2001 From: Mark Probst Date: Mon, 13 Jul 2026 08:01:56 -0400 Subject: [PATCH] =?UTF-8?q?cjson:=20skip=20nested-intersection-union.schem?= =?UTF-8?q?a=20=E2=80=94=20invalid-type=20inputs=20are=20not=20checked=20(?= =?UTF-8?q?known=20limitation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cjson's generated parser does not validate invalid types in unions, maps, and arrays (documented above this skip list), so it silently coerces the fixture's expected-failure instance (array where an object is required) into an empty object instead of rejecting it. Skip the schema for cjson, exactly like the existing class-with-additional, go-schema-pattern-properties, and multi-type-enum skips. Co-Authored-By: Claude Fable 5 --- test/languages.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/languages.ts b/test/languages.ts index 638c3a91d..2effea392 100644 --- a/test/languages.ts +++ b/test/languages.ts @@ -554,6 +554,7 @@ export const CJSONLanguage: Language = { "class-with-additional.schema", "go-schema-pattern-properties.schema", "multi-type-enum.schema", + "nested-intersection-union.schema", /* Constraints (min/max and regex) are not supported (for the current implementation, can be added later, should abord parsing and return NULL) */ "minmaxlength.schema", "optional-const-ref.schema",