-
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
admin
committed
Nov 29, 2024
1 parent
19875c1
commit 43f2c82
Showing
2 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
__tests__/__fixtures__/circular-references-oas/unresolvable-circular-reference-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