BotSharp/src/Infrastructure/BotSharp.Abstraction/Functions/Models/ParameterPropertyDef.cs

20 lines
480 B
C#
Raw Normal View History

2023-09-27 20:49:44 +00:00
namespace BotSharp.Abstraction.Functions.Models;
public class ParameterPropertyDef : NameDesc
2023-09-27 20:49:44 +00:00
{
public ParameterPropertyDef(string name, string description, string type = "string")
: base(name, description)
{
Type = type;
}
2023-10-28 20:59:26 +00:00
[JsonPropertyName("required")]
public bool Required { get; set; }
/// <summary>
/// string, number, object
/// </summary>
[JsonPropertyName("type")]
2023-09-27 20:49:44 +00:00
public string Type { get; set; } = "string";
}