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
|
|
@ -41,3 +41,4 @@ torn-api-codegen = { path = "../torn-api-codegen", version = "0.3.0" }
|
|||
syn = { workspace = true, features = ["parsing"] }
|
||||
proc-macro2 = { workspace = true }
|
||||
prettyplease = "0.2"
|
||||
serde_json = { workspace = true }
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
22472
torn-api/openapi.json
Normal file
22472
torn-api/openapi.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue