I have a type parameter in my spec as follows:
/animal/{type}:
get:
summary: Get an animal by type
parameters:
- name: type
in: path
required: true
schema:
type: string
Which resuls in the following server interface:
type ServerInterface interface {
GetAnimalByType(ctx echo.Context, type string, params GetAnimalByTypeParams) error
}
But as you can see this results in a parameter named type which is a reseverd golang keyword.
Perhaps pre/post fixing all param names can prevent these errors.
I have a
typeparameter in my spec as follows:Which resuls in the following server interface:
But as you can see this results in a parameter named
typewhich is a reseverd golang keyword.Perhaps pre/post fixing all param names can prevent these errors.