orvanta-api 3.0.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 3.0.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// BpmnValidationProblem : A rejected BPMN deploy. `issues` carries every problem found, not just the first, so one round trip is enough to fix them all; warnings found alongside the errors are included with `severity: warning`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnValidationProblem {
    /// A readable summary, for a client that reads one field.
    #[serde(rename = "error")]
    pub error: String,
    /// Empty for a parse failure — the document never became a model, so there is no element to anchor to.
    #[serde(rename = "issues")]
    pub issues: Vec<models::BpmnValidationIssue>,
}

impl BpmnValidationProblem {
    /// A rejected BPMN deploy. `issues` carries every problem found, not just the first, so one round trip is enough to fix them all; warnings found alongside the errors are included with `severity: warning`.
    pub fn new(error: String, issues: Vec<models::BpmnValidationIssue>) -> BpmnValidationProblem {
        BpmnValidationProblem {
            error,
            issues,
        }
    }
}