Skip to content

Commit

Permalink
chore: expose Report so traits can be implemented for it (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
G4Vi authored Apr 15, 2024
1 parent ff8210c commit 71ae2ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions validation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,16 @@ impl Display for Classification {

#[derive(Debug, Deserialize, Serialize)]
pub struct FailureDetail {
actual: String,
expected: String,
severity: usize,
classification: Classification,
pub actual: String,
pub expected: String,
pub severity: usize,
pub classification: Classification,
}

#[derive(Debug, Deserialize, Serialize)]
pub struct Report {
/// k/v pair of the dot-separated path to validation field and expectation info
fails: BTreeMap<String, FailureDetail>,
pub fails: BTreeMap<String, FailureDetail>,
}

impl Report {
Expand Down

0 comments on commit 71ae2ca

Please sign in to comment.