use thiserror::Error;
#[derive(Debug, Error)]
pub enum ParseError {
#[error("E1001: not a valid OpenAPI 3.x or AsyncAPI 3.x spec")]
UnknownFormat,
#[error("E1002: parse error: {0}")]
ParseError(String),
#[error("E1003: unresolved $ref: {0}")]
UnresolvedRef(String),
#[error("E1004: schema validation error: {0}")]
SchemaError(String),
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
}