using System.Text.Json;
namespace BuildFlow.Host.Endpoints.Scripting;
///
/// 调用脚本请求。Name 由路由 {name} 绑定;Input 为任意 JSON 对象,端点将其序列化为字符串传给执行服务。
///
public sealed class InvokeScriptRequest
{
/// 由路由 {name} 绑定的脚本英文名。
public string Name { get; set; } = string.Empty;
/// 调用输入,可为任意 JSON 值(对象/数组/标量)。
public JsonElement? Input { get; set; }
}