aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/json_schema/validator.rs
blob: ede37620a2a071a75277e757b167d5d7fdba66c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! ref: composer/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php

use shirabe_php_shim::PhpMixed;

#[derive(Debug)]
pub struct Validator;

impl Default for Validator {
    fn default() -> Self {
        Self::new()
    }
}

impl Validator {
    pub fn new() -> Self {
        todo!()
    }

    pub fn check(&mut self, _data: &PhpMixed, _schema: &PhpMixed) -> anyhow::Result<()> {
        todo!()
    }

    pub fn is_valid(&self) -> bool {
        todo!()
    }

    pub fn get_errors(&self) -> Vec<String> {
        todo!()
    }
}