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