Skip to content

Commit 58ee544

Browse files
authored
Merge pull request #1358 from yileicn/master
fix: map field_type in RoutingRuleUpdateModel deserialization
2 parents f8a18b0 + 997da04 commit 58ee544

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Infrastructure/BotSharp.OpenAPI/ViewModels/Agents/Request/RoutingRuleUpdateModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using BotSharp.Abstraction.Routing.Models;
2+
using System.Text.Json.Serialization;
23

34
namespace BotSharp.OpenAPI.ViewModels.Agents;
45

@@ -7,6 +8,7 @@ public class RoutingRuleUpdateModel
78
public string? Field { get; set; }
89
public string? Description { get; set; }
910
public string? Type { get; set; }
11+
[JsonPropertyName("field_type")]
1012
public string? FieldType { get; set; }
1113
public bool Required { get; set; }
1214
public string? RedirectTo { get; set; }

0 commit comments

Comments
 (0)