Trait pact_models::verify_json::PactJsonVerifier
source · pub trait PactJsonVerifier {
// Required method
fn verify_json(
path: &str,
pact_json: &Value,
strict: bool,
spec_version: PactSpecification
) -> Vec<PactFileVerificationResult>;
}
Expand description
Trait for Pact JSON file format verifiers
Required Methods§
sourcefn verify_json(
path: &str,
pact_json: &Value,
strict: bool,
spec_version: PactSpecification
) -> Vec<PactFileVerificationResult>
fn verify_json( path: &str, pact_json: &Value, strict: bool, spec_version: PactSpecification ) -> Vec<PactFileVerificationResult>
Verify the JSON format. Will return an error if the list contains any Error result