schemadoc-diff 0.1.20

OpenApi diff library and breaking changes detector
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// use serde_json::Error as JsonError;
use std::io::Error as IoError;
use thiserror::Error;

/// errors that openapi functions may return
#[derive(Error, Debug)]
pub enum Error {
    #[error("Source schema JSON serialization error")]
    InvalidSourceSchema,
    #[error("Target schema JSON serialization error")]
    InvalidTargetSchema,

    #[error("I/O error")]
    Io(#[from] IoError),
}