// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Dry-run validation for an assembled workflow block config.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ValidateWorkflowBlockConfigRequest {
    /// Assembled block config to validate.
    pub config: std::collections::HashMap<String, serde_json::Value>,
    /// How to apply the config before validation. 'replace' validates the config as the full block config; 'merge' validates the result of merging it into the existing block config.
    ///
    /// Defaults to `replace`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub config_mode: Option<ValidateWorkflowBlockConfigRequestConfigMode>,
}
impl ValidateWorkflowBlockConfigRequest {
    /// Construct a new `ValidateWorkflowBlockConfigRequest` with the required fields set.
    #[allow(deprecated)]
    pub fn new(config: std::collections::HashMap<String, serde_json::Value>) -> Self {
        Self {
            config,
            config_mode: Default::default(),
        }
    }
}
