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

19 lines
441 B
C#
Raw Normal View History

using BotSharp.Abstraction.Models;
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;
}
/// <summary>
/// string, number, object
/// </summary>
[JsonPropertyName("type")]
2023-09-27 20:49:44 +00:00
public string Type { get; set; } = "string";
}