Skip to content

Strict Server Middlewares are hard to reuse.  #766

Description

@ralf-cestusio
type StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, args interface{}) (interface{}, error)

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

Types are generated with the api and are part of the package of the api.

This makes it very difficult to reuse a middleware

I would suggest to add them to a part of the library and reuse them as part of the generated code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions