oasgen_core/schema/
http.rs

1use http::{Method, Version, Uri};
2use openapiv3::Schema;
3use crate::OaSchema;
4
5impl OaSchema for Method {
6    fn schema() -> Schema {
7        Schema::new_string()
8    }
9}
10
11impl OaSchema for Version {
12    fn schema() -> Schema {
13        Schema::new_string()
14    }
15}
16
17impl OaSchema for Uri {
18    fn schema() -> Schema {
19        Schema::new_string()
20    }
21}