From e34f40eb83a227c5096fd171b25f20c0af798f40 Mon Sep 17 00:00:00 2001 From: Skip Baney Date: Thu, 27 Jul 2023 23:04:03 -0500 Subject: [PATCH] fix: schema parse error when additionalAttributes is schema object --- internal/jsonschema/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/jsonschema/schema.go b/internal/jsonschema/schema.go index 5fe2ce3..9588250 100644 --- a/internal/jsonschema/schema.go +++ b/internal/jsonschema/schema.go @@ -18,7 +18,7 @@ var Templates embed.FS // Schema represents a JSON schema document. type Schema struct { AdditionalItems *Schema `json:"additionalItems,omitempty"` - AdditionalProperties bool `json:"additionalProperties,omitempty"` + AdditionalProperties any `json:"additionalProperties,omitempty"` AllOf []*Schema `json:"allOf,omitempty"` AnyOf []*Schema `json:"anyOf,omitempty"` Comment string `json:"$comment,omitempty"`