Open
Description
export-url : https://export.example.com/api/v1
go-api-url : http://app.example.com/api/v1
Server-URL:
NG : https://export.example.com/api/v1
NG : /api/v1 -> fail
So, i change to swagger data.
Send to client
swagger.Servers = openapi3.Servers{
{URL: "/api/v1"},
}
send to validate middleware.
// remove servers and rewrite from relative-path to absolute-path
swagger.Servers = openapi3.Servers{}
paths := openapi3.Paths{}
for k, v := range swagger.Paths {
paths[path.Join(basePath, k)] = v
}
swagger.Paths = paths
Metadata
Metadata
Assignees
Labels
No labels