jss-core 0.2.0

Json Simplified Schema Core Interface
Documentation
1
2
3
4
5
6
7
8
9
use crate::{JssError, JssErrorKind};
use json_value::Error;

impl From<Error> for JssError {
    fn from(e: Error) -> Self {
        let kind = JssErrorKind::SyntaxError(e.to_string());
        Self { kind: Box::new(kind), line: e.line() as u32, column: e.column() as u32 }
    }
}