Commit Graph

1 Commits

Author SHA1 Message Date
W. Michael Petullo
c018edf91f Patch to work with current golang-github-getkin-kin-openapi-devel package
It seems that the API exported by golang-github-getkin-kin-openapi-devel
changed out from under Hugo. the README.md from
golang-github-getkin-kin-openapi-devel contains:

Sub-v0 breaking API changes

v0.61.0
* Renamed `openapi2.Swagger` to `openapi2.T`.
* Renamed `openapi2conv.FromV3Swagger` to `openapi2conv.FromV3`.
* Renamed `openapi2conv.ToV3Swagger` to `openapi2conv.ToV3`.
* Renamed `openapi3.LoadSwaggerFromData` to `openapi3.LoadFromData`.
* Renamed `openapi3.LoadSwaggerFromDataWithPath` to `openapi3.LoadFromDataWithPath`.
* Renamed `openapi3.LoadSwaggerFromFile` to `openapi3.LoadFromFile`.
* Renamed `openapi3.LoadSwaggerFromURI` to `openapi3.LoadFromURI`.
* Renamed `openapi3.NewSwaggerLoader` to `openapi3.NewLoader`.
* Renamed `openapi3.Swagger` to `openapi3.T`.
* Renamed `openapi3.SwaggerLoader` to `openapi3.Loader`.
* Renamed `openapi3filter.ValidationHandler.SwaggerFile` to `openapi3filter.ValidationHandler.File`.
* Renamed `routers.Route.Swagger` to `routers.Route.Spec`.

This adds a patch to make use of the new name T.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2021-09-29 16:32:14 -05:00