use std::collections::HashMap;
use chrono::{DateTime, Utc};
use serde::Deserialize;
use serde_json::Value;
#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
#[derive(Debug, Deserialize)]
pub struct CreateRunRequest {
pub workflow: String,
#[cfg_attr(feature = "openapi", schema(value_type = Option<std::collections::HashMap<String, serde_json::Value>>))]
pub payload: Option<Value>,
#[serde(default)]
pub labels: Option<HashMap<String, String>>,
#[serde(default)]
pub scheduled_at: Option<DateTime<Utc>>,
}