1
2
3
4
5
6
7
8
9
10
/// This type represents all possible errors that can occur when generate or write JSON Schema string.
/// 
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error(transparent)]
    IoError(#[from] std::io::Error),

    #[error(transparent)]
    SerdeJsonError(#[from] serde_json::Error),
}