Skip to content

Commit 332182a

Browse files
fix
1 parent c174a3c commit 332182a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonschema/oas3/resolution.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func (s *JSONSchema[Referenceable]) resolve(ctx context.Context, opts references
325325
// This maintains reference chain tracking when accessing properties of resolved schemas
326326
var topLevel *JSONSchemaReferenceable
327327
if s.topLevelParent != nil {
328-
topLevel = (*JSONSchemaReferenceable)(s.topLevelParent)
328+
topLevel = s.topLevelParent
329329
} else {
330330
topLevel = (*JSONSchemaReferenceable)(s)
331331
}

0 commit comments

Comments
 (0)