// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Body for the flat ``POST /workflows/experiments/runs`` route.
/// Carries the scoping identity in the body — no parent id in the URL
/// (meta-pattern-blueprint §1). ``workflow_id`` is optional because it is
/// derivable from the experiment record; when supplied it is validated
/// against the experiment's stored workflow.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CreateExperimentRunRequest {
    /// The experiment to create a run for.
    pub experiment_id: String,
    /// Optional. When omitted, the workflow is derived from the experiment record. When supplied, must match the experiment's workflow_id (404 otherwise).
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub workflow_id: Option<String>,
}
