func rawPayload(typ gen.DataType, p interface{}) *gen.ActionParam {
	var required bool
	if req, ok := p.(map[string]interface{})["required"]; ok {
		required = req.(bool)
	}
	return &gen.ActionParam{
		Name:      "payload",
		QueryName: "payload",
		VarName:   "payload",
		Type:      typ,
		Location:  gen.PayloadParam,
		Mandatory: required,
	}
}
func rawPayload(typ gen.DataType, p interface{}) *gen.ActionParam {
	var required bool
	if req, ok := p.(map[string]interface{})["required"]; ok {
		required = req.(bool)
	}
	return &gen.ActionParam{
		Name:      "payload",
		QueryName: "payload",
		VarName:   "payload",
		Type:      typ,
		Location:  gen.PayloadParam,
		Mandatory: required,
	}
}
// rawPayload is a helper function that creates a ActionParam for a raw (non object) payload