// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WorkflowTableValidationResponse {
    pub table_id: String,
    /// Defaults to `[]`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub diagnostics: Option<Vec<WorkflowTableValidationDiagnostic>>,
    /// Defaults to `false`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub has_errors: Option<bool>,
}
impl WorkflowTableValidationResponse {
    /// Construct a new `WorkflowTableValidationResponse` with the required fields set.
    #[allow(deprecated)]
    pub fn new(table_id: impl Into<String>) -> Self {
        Self {
            table_id: table_id.into(),
            diagnostics: Default::default(),
            has_errors: Default::default(),
        }
    }
}
