挥舞着路径参数

Route:

// swagger:route DELETE /v1/path/{id} api DeleteV1
//
// Deletes an item.
//
//     Schemes: https
//
//     Responses:
//       202: AcceptedResponse
//       401: UnauthorizedErrorResponse
//       500: InternalServerErrorResponse
"/v1/path/{id}": {
    "DELETE":  Handle(DeleteRequest{}),
    "OPTIONS": s.handleOptionsRequest,
},

Params/response model:

// Description
//
// swagger:parameters DeleteV1
type DeleteRequest struct {
    // id of an item
    //
    // In: path
    id string `json:"id"`

    cookies  []*http.Cookie
}

// Description
//
// swagger:response DeleteResponse
type DeleteResponse struct {
}

I keep getting - path param "{id}" has no parameter definition whatever I try.

The endpoint takes only path param "id", cookies (they are not visible in a swagger model) and returns an empty body and an HTTP status code.

How to make go-swagger see the "parameter definition"for the "{id}"?

The struct field needs to be exported. Try:

type DeleteRequest struct {
    // ID of an item
    //
    // In: path
    ID string `json:"id"`