Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 68c08de

Browse files
committed
fixed flattening of ref schema
1 parent cc83479 commit 68c08de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/github/hauner/openapi/core/parser/openapi4j/RefResolver.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class RefResolver implements ParserRefResolver {
4444
resolved = o4jCompSchema
4545
} else {
4646
O4jSchema o4jSchema = (ref as Schema).schema
47-
resolved = o4jSchema.copy (api.context, true)
47+
resolved = o4jSchema.getReference(api.getContext()).getMappedContent(O4jSchema)
4848
}
4949

5050
new Schema (resolved)

0 commit comments

Comments
 (0)