keep references to Form parameters
This commit is contained in:
parent
12417f7f1c
commit
93b31b9718
|
@ -129,6 +129,11 @@ func (svc *Service) checkAndFormatInput(types []datatype.T) error {
|
|||
}
|
||||
svc.Query[queryName] = param
|
||||
|
||||
} else {
|
||||
if svc.Form == nil {
|
||||
svc.Form = make(map[string]*Parameter)
|
||||
}
|
||||
svc.Form[paramName] = param
|
||||
}
|
||||
|
||||
// use param name if no rename
|
||||
|
|
|
@ -31,6 +31,9 @@ type Service struct {
|
|||
// references to Query parameters
|
||||
// format: 'GET@paranName'
|
||||
Query map[string]*Parameter
|
||||
|
||||
// references for form parameters (all but Captures and Query)
|
||||
Form map[string]*Parameter
|
||||
}
|
||||
|
||||
// Parameter represents a parameter definition (from api.json)
|
||||
|
|
Loading…
Reference in New Issue