use super::*; #[test] fn petstore() { let doc: SparseRoot = SparseRoot::new_from_file(PathBuf::from( oapi_test_path!("tests/documents/test_docs/openapi.json"), )) .expect("to parse the openapi"); println!("{:#?}", doc); } #[test] fn petstore_bundled() { let doc: SparseRoot = SparseRoot::new_from_file(PathBuf::from( oapi_test_path!("tests/documents/test_docs/openapi_bundled.json"), )) .expect("to parse the openapi"); println!("{:#?}", doc); } #[test] fn petstore_yml() { let doc: SparseRoot = SparseRoot::new_from_file(PathBuf::from( oapi_test_path!("tests/documents/test_docs/openapi.yml"), )) .expect("to parse the openapi"); println!("{:#?}", doc); }