-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oleh Shumov
committed
Dec 6, 2024
1 parent
da5b0ad
commit 9249d2a
Showing
4 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...sts__/__fixtures__/circular-references-oas/unresolvable-circular-references-resolved.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "Complex Cyclic Example", | ||
"version": "1.0.0" | ||
}, | ||
"paths": { | ||
"/example": { | ||
"get": { | ||
"summary": "Example endpoint with unresolved references", | ||
"responses": { | ||
"200": { | ||
"description": "Successful response" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"Entity": { | ||
"type": "object", | ||
"properties": { | ||
"relatedEntity": { | ||
"$ref": "#/components/schemas/RelatedEntity" | ||
}, | ||
"Entity": { | ||
"$ref": "#/components/schemas/EntityRef" | ||
} | ||
} | ||
}, | ||
"RelatedEntity": { | ||
"type": "object", | ||
"properties": { | ||
"entity": { | ||
"$ref": "#/components/schemas/EntityRef" | ||
}, | ||
"RelatedEntity": { | ||
"$ref": "#/components/schemas/RelatedEntityRef" | ||
} | ||
} | ||
}, | ||
"RelatedEntityRef": { | ||
"type": "object", | ||
"properties": { | ||
"entity": { | ||
"type": "object" | ||
}, | ||
"RelatedEntity": { | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
"EntityRef": { | ||
"type": "object", | ||
"properties": { | ||
"relatedEntity": { | ||
"$ref": "#/components/schemas/RelatedEntityRef" | ||
}, | ||
"Entity": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters