pub struct BpmnValidationReport {
pub ok: bool,
pub compiled: bool,
pub issues: Vec<BpmnValidationIssue>,
}Expand description
BpmnValidationReport : What POST /bpmn_flows/validate answers. Returned with 200 in every case the document is at fault – a 400 carrying the same list would make "your XML is wrong" indistinguishable from "your request is wrong", which is the distinction a caller needs in order to decide whether retrying can help.
Fields§
§ok: booltrue when this document would deploy: it compiled and no issue has severity: error. Warnings do not clear it – they never block. This is the field to branch on.
compiled: boolfalse when the document never reached a compiled model, so every check that needs one was skipped. compiled: false with an empty issues list is impossible.
issues: Vec<BpmnValidationIssue>Every finding, errors and warnings together, in the same shape a deploy returns.
Implementations§
Source§impl BpmnValidationReport
impl BpmnValidationReport
Sourcepub fn new(
ok: bool,
compiled: bool,
issues: Vec<BpmnValidationIssue>,
) -> BpmnValidationReport
pub fn new( ok: bool, compiled: bool, issues: Vec<BpmnValidationIssue>, ) -> BpmnValidationReport
What POST /bpmn_flows/validate answers. Returned with 200 in every case the document is at fault – a 400 carrying the same list would make "your XML is wrong" indistinguishable from "your request is wrong", which is the distinction a caller needs in order to decide whether retrying can help.