-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels