/disable endpoint in openapi definition (#30)

This commit is contained in:
Michael Quigley
2022-09-01 17:39:02 -04:00
parent 2b65166f2a
commit 386c41f41a
51 changed files with 1649 additions and 116 deletions

View File

@ -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)
}