mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 03:11:17 +02:00
/disable endpoint in openapi definition (#30)
This commit is contained in:
@ -6,7 +6,6 @@ package identity
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
@ -60,7 +59,7 @@ func (o *EnableParams) BindRequest(r *http.Request, route *middleware.MatchedRou
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
ctx := validate.WithOperationRequest(context.Background())
|
||||
ctx := validate.WithOperationRequest(r.Context())
|
||||
if err := body.ContextValidate(ctx, route.Formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user