Skip to main content

orvanta_api/models/
bpmn_validation_request.rs

1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 6.5.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BpmnValidationRequest : A document to check without committing it (#1560). Nothing is stored.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnValidationRequest {
17    /// The BPMN 2.0 XML to check, as a string.
18    #[serde(rename = "bpmn_xml")]
19    pub bpmn_xml: String,
20    /// The workspace path this document is *destined* for, if you have one. Used only for the scope check -- no row is read or written under it, and a path that does not exist yet is fine. Omit it and the check is \"any path\", which is honest: the answer does not depend on one.
21    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
22    pub path: Option<String>,
23}
24
25impl BpmnValidationRequest {
26    /// A document to check without committing it (#1560). Nothing is stored.
27    pub fn new(bpmn_xml: String) -> BpmnValidationRequest {
28        BpmnValidationRequest {
29            bpmn_xml,
30            path: None,
31        }
32    }
33}
34