add missing field
This commit is contained in:
parent
b6aed4730b
commit
0579a15efb
|
|
@ -22,7 +22,11 @@ public class RoutingRule
|
|||
|
||||
public bool Required { get; set; }
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? RedirectTo { get; set; }
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
[JsonPropertyName("redirect_to_agent")]
|
||||
public string? RedirectToAgentName { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
|
|
|
|||
|
|
@ -4,8 +4,10 @@ namespace BotSharp.OpenAPI.ViewModels.Agents;
|
|||
|
||||
public class RoutingRuleUpdateModel
|
||||
{
|
||||
public string Field { get; set; }
|
||||
public string? Field { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Type { get; set; }
|
||||
public string? FieldType { get; set; }
|
||||
public bool Required { get; set; }
|
||||
public string? RedirectTo { get; set; }
|
||||
|
||||
|
|
@ -20,6 +22,8 @@ public class RoutingRuleUpdateModel
|
|||
{
|
||||
Field = model.Field,
|
||||
Description = model.Description,
|
||||
Type = model.Type,
|
||||
FieldType = model.FieldType,
|
||||
Required = model.Required,
|
||||
RedirectTo = model.RedirectTo
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue