schemadoc_diff/error.rs
1// use serde_json::Error as JsonError;
2use std::io::Error as IoError;
3use thiserror::Error;
4
5/// errors that openapi functions may return
6#[derive(Error, Debug)]
7pub enum Error {
8 #[error("Source schema JSON serialization error")]
9 InvalidSourceSchema,
10 #[error("Target schema JSON serialization error")]
11 InvalidTargetSchema,
12
13 #[error("I/O error")]
14 Io(#[from] IoError),
15}