aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/json_schema/validator.rs
blob: 48d5528780c09016c3bec9f6bc392f741af75144 (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
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!()
    }
}