chore: moved schema file to torn-api crate
This commit is contained in:
parent
11c5d71bf6
commit
6d57f275a2
10 changed files with 33 additions and 34 deletions
|
|
@ -15,7 +15,8 @@ fn main() {
|
|||
let requests_dest = Path::new(&out_dir).join("requests.rs");
|
||||
let scopes_dest = Path::new(&out_dir).join("scopes.rs");
|
||||
|
||||
let schema = OpenApiSchema::read().unwrap();
|
||||
let s = include_str!("./openapi.json");
|
||||
let schema: OpenApiSchema = serde_json::from_str(s).unwrap();
|
||||
|
||||
let mut models_code = TokenStream::new();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue