jss-core 0.2.0

Json Simplified Schema Core Interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod parse_main;
mod parse_type;

use crate::{Errors, JssError, JssSchema, Result};
use json_value::JsonValue;

impl TryFrom<JsonValue> for JssSchema {
    type Error = JssError;

    fn try_from(value: JsonValue) -> Result<Self> {
        let mut errors = vec![];
        Self::try_parse_json_schema(value, &mut errors)
    }
}