-
-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added remote schema cache. Loaded schemas are stored in the cache onc…
…e they are loaded and resolved. this avoids hundreds of roundtrips to remote server for schemas that contain multiple references
- Loading branch information
Showing
3 changed files
with
56 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
openapi: 3.0.0 | ||
info: | ||
title: 'OAI Specification w/ refs in YAML. Multiple refs to the same remote schema' | ||
version: '1' | ||
paths: {} | ||
components: | ||
schemas: | ||
AnotherTestSchema: | ||
type: object | ||
properties: | ||
ref1: | ||
"$ref": http://localhost:7965/components.openapi.yml#/components/schemas/CustomTestSchema | ||
ref2: | ||
"$ref": http://localhost:7965/components.openapi.yml#/components/schemas/Name |