/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// JobValidateResponse is the response from validate request
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct JobValidateResponse {
    /// DriverConfigValidated indicates whether the agent validated the driver
    /// config
    #[serde(rename = "DriverConfigValidated")]
    pub driver_config_validated: bool,

    /// ValidationErrors is a list of validation errors
    #[serde(
        rename = "ValidationErrors",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub validation_errors: Vec<String>,

    /// Error is a string version of any error that may have occurred
    #[serde(rename = "Error")]
    pub error: String,

    /// Warnings contains any warnings about the given job. These may include
    /// deprecation warnings.
    #[serde(rename = "Warnings")]
    pub warnings: String,
}
