added should stream
This commit is contained in:
@@ -108,9 +108,10 @@ type ActionConfig struct {
|
||||
}
|
||||
|
||||
type ResponseConfig struct {
|
||||
Code int `json:"code" yaml:"code"`
|
||||
Template string `json:"template" yaml:"template"`
|
||||
Type string `json:"type" yaml:"type"`
|
||||
Code int `json:"code" yaml:"code"`
|
||||
Template string `json:"template" yaml:"template"`
|
||||
Type string `json:"type" yaml:"type"`
|
||||
ShouldStream bool `json:"shouldStream" yaml:"shouldStream"`
|
||||
}
|
||||
|
||||
type DatasourceConfig struct {
|
||||
|
||||
+4
-3
@@ -63,9 +63,10 @@ func ProtoConfigToAPIConfig(configs []*proto.WorkflowConfig) []*APIConfig {
|
||||
for key := range protoConfig.Responses {
|
||||
resp := protoConfig.Responses[key]
|
||||
a.Responses[key] = ResponseConfig{
|
||||
Code: int(resp.GetCode()),
|
||||
Type: resp.Type,
|
||||
Template: string(resp.Template),
|
||||
Code: int(resp.GetCode()),
|
||||
Type: resp.Type,
|
||||
Template: string(resp.Template),
|
||||
ShouldStream: resp.ShouldStream,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user