forked from go-openapi/spec
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed the global state of the resolution cache * the cache at the package level is only used for static entries (json schema, swagger schema) * all subsequent utilizations of this cache are taken from a shallow clone of this initial cache which will therefore not mutate Signed-off-by: Frederic BIDON <[email protected]> * Added PathLoader to ExpandOptions This allows to bypass package level settings. In particular, go-openapi/loads can be changed to remove the subtle race conditions when altering PathLoader at the package level from the Spec() function. Signed-off-by: Frederic BIDON <[email protected]> * * adapted package tests to avoid switching the package level variable * ran tests with go-openapi/validate and go-openapi/loads Signed-off-by: Frederic BIDON <[email protected]>
- Loading branch information
Showing
6 changed files
with
180 additions
and
145 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
Oops, something went wrong.