add missing field

This commit is contained in:
Jicheng Lu 2024-03-25 02:44:37 -05:00
parent b6aed4730b
commit 0579a15efb
2 changed files with 9 additions and 1 deletions

View file

@ -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()

View file

@ -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
};