Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: expose Report so traits can be implemented for it in other modules #74

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading