metadata/action.go
func (a *Action) paramsByLocation(loc Location) []string {
	var res []string
	for _, p := range a.APIParams {
		if p.Location == loc {
			res = append(res, p.Name)
		}
	}
	sort.Strings(res)
	return res
}
func (a *Action) paramsByLocation(loc Location) []string {
	var res []string
	for _, p := range a.APIParams {
		if p.Location == loc {
			res = append(res, p.Name)
		}
	}
	sort.Strings(res)
	return res
}
// paramsByLocation is a helper method that returns the names of the parameters at the given
// location (path, query string or payload).