oasgen_core/schema/
http.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use http::{Method, Version, Uri};
use openapiv3::Schema;
use crate::OaSchema;

impl OaSchema for Method {
    fn schema() -> Schema {
        Schema::new_string()
    }
}

impl OaSchema for Version {
    fn schema() -> Schema {
        Schema::new_string()
    }
}

impl OaSchema for Uri {
    fn schema() -> Schema {
        Schema::new_string()
    }
}