mirror of
https://github.com/LUDevNet/ParadoxServer.git
synced 2026-01-06 12:59:45 -06:00
11 lines
236 B
Rust
11 lines
236 B
Rust
use openapiv3::OpenAPI;
|
|
use serde_yaml::{from_str, Error};
|
|
|
|
fn main() {
|
|
let text = include_str!("res/api.yaml");
|
|
let result: Result<OpenAPI, Error> = from_str(text);
|
|
if let Err(e) = result {
|
|
panic!("{}", e);
|
|
}
|
|
}
|