diff --git a/src/lib.rs b/src/lib.rs
index cde912345572299f09b8e5f28e5da888cdeaaaaa..187d793547e7049c012008246f43a9b21a247bec 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -155,7 +155,7 @@ impl SchemaInspector {
 /// fails to conform to the schema the inspector was compiled with.
 ///
 /// The error type internally holds a string containing detailed information about what part of the JSON differs from the schema
-#[derive(Debug)]
+#[derive(Debug, Clone, PartialEq, Eq)]
 pub struct SchemaError {
     cause: String,
 }
@@ -169,7 +169,7 @@ impl Display for SchemaError {
 }
 
 /// All the possible errors that can occur while initializing [`SchemaInspector`]
-#[derive(Debug)]
+#[derive(Debug, Clone, PartialEq, Eq)]
 pub enum InitError {
     SchemaNotFound(String),
     ResolutionFailure(String), // contains the reference that was not resolved