-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow importing apisprout from external packages
This can be useful for testing go code against the mock server. The mock server could be started in a go test and the tests are not dependant on a docker daemon or similar runtime. To start a server or get a http.Handler without passing a file path or URL, the server is separated into a server (`OpenAPIServer`) that only requires an `openapi3.T` to run and the loading from a file or URL is handled by a `ConfigReloader`. It can load from a URL or file path and reload the `OpenAPIServer` on file changes. Signed-off-by: leonnicolas <[email protected]>
- Loading branch information
1 parent
55a1793
commit 30e6b1a
Showing
11 changed files
with
1,394 additions
and
302 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.DS_Store | ||
vendor | ||
logo.png | ||
apisprout | ||
/apisprout | ||
apisprout.exe | ||
apisprout*.zip | ||
apisprout*.xz |
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.