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
|
|
@ -420,11 +420,11 @@ impl ObjectNamespace<'_> {
|
|||
mod test {
|
||||
use super::*;
|
||||
|
||||
use crate::openapi::schema::OpenApiSchema;
|
||||
use crate::openapi::schema::test::get_schema;
|
||||
|
||||
#[test]
|
||||
fn resolve_object() {
|
||||
let schema = OpenApiSchema::read().unwrap();
|
||||
let schema = get_schema();
|
||||
|
||||
let attack = schema.components.schemas.get("FactionUpgrades").unwrap();
|
||||
|
||||
|
|
@ -436,7 +436,7 @@ mod test {
|
|||
|
||||
#[test]
|
||||
fn resolve_objects() {
|
||||
let schema = OpenApiSchema::read().unwrap();
|
||||
let schema = get_schema();
|
||||
|
||||
let mut objects = 0;
|
||||
let mut unresolved = vec![];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue