From 0429db3bae0390938223d14e8b36737b5fb3ef3c Mon Sep 17 00:00:00 2001 From: Nicholas Wiersma Date: Mon, 23 Oct 2023 16:36:36 +0200 Subject: [PATCH] fix: issue with dereferencing schemas (#319) --- schema_parse.go | 1 + 1 file changed, 1 insertion(+) diff --git a/schema_parse.go b/schema_parse.go index 09040856..4f5622ae 100644 --- a/schema_parse.go +++ b/schema_parse.go @@ -565,6 +565,7 @@ func derefSchema(schema Schema) Schema { } if _, haveSeen := seen[ref.Schema().FullName()]; !haveSeen { + seen[ref.Schema().FullName()] = struct{}{} return ref.Schema() } return schema