From e39353f19add59cf9335bc6db8b7706c1fe19cde Mon Sep 17 00:00:00 2001 From: Amol Kapoor Date: Wed, 22 Feb 2023 14:41:00 -0500 Subject: [PATCH 1/2] Allow $ref types on additionalProperties --- lib/types/json-schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types/json-schema.ts b/lib/types/json-schema.ts index 281a38bdb..87153e2bf 100644 --- a/lib/types/json-schema.ts +++ b/lib/types/json-schema.ts @@ -101,7 +101,7 @@ type UncheckedJSONSchemaType = ( // "properties" are optional for more concise dictionary schemas // "patternProperties" and can be only used with interfaces that have string index type: JSONType<"object", IsPartial> - additionalProperties?: boolean | UncheckedJSONSchemaType + additionalProperties?: boolean | UncheckedJSONSchemaType | { $ref: string } unevaluatedProperties?: boolean | UncheckedJSONSchemaType properties?: IsPartial extends true ? Partial> From 6a8bf834877ce2f5ed6aaaa7bcaf4e95ccce8637 Mon Sep 17 00:00:00 2001 From: Amol Kapoor Date: Wed, 22 Feb 2023 15:00:33 -0500 Subject: [PATCH 2/2] prettier --- lib/types/json-schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types/json-schema.ts b/lib/types/json-schema.ts index 87153e2bf..e7e522550 100644 --- a/lib/types/json-schema.ts +++ b/lib/types/json-schema.ts @@ -101,7 +101,7 @@ type UncheckedJSONSchemaType = ( // "properties" are optional for more concise dictionary schemas // "patternProperties" and can be only used with interfaces that have string index type: JSONType<"object", IsPartial> - additionalProperties?: boolean | UncheckedJSONSchemaType | { $ref: string } + additionalProperties?: boolean | UncheckedJSONSchemaType | {$ref: string} unevaluatedProperties?: boolean | UncheckedJSONSchemaType properties?: IsPartial extends true ? Partial>