canic_core/dto/validation.rs
1use serde::Deserialize;
2
3//
4// ValidationReport
5//
6
7#[expect(clippy::struct_excessive_bools)]
8#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
9pub struct ValidationReport {
10 pub ok: bool,
11 pub registry_index_consistent: bool,
12 pub unique_index_roles: bool,
13 pub env_complete: bool,
14 pub issues: Vec<ValidationIssue>,
15}
16
17//
18// ValidationIssue
19//
20
21#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
22pub struct ValidationIssue {
23 pub code: String,
24 pub message: String,
25}