If you have multiple actions in a single swagger path, you can define the parameters at the top of the definition for that path, without having to repeat it in each action.
Example:
/users/{username}
parameters:
– name: username
in: path
required: true
get:
(get definition here)
put:
(put definition here)
delete:
(delete definition here)