save: add utoipa for OAPI generation

This commit is contained in:
oxalica 2024-10-16 06:43:54 -04:00
parent 71c5f038fa
commit acaf0f955a
11 changed files with 212 additions and 610 deletions

View file

@ -0,0 +1,8 @@
#![expect(clippy::print_stdout, reason = "allowed to dump OAPI")]
fn main() {
let json = blah_types::openapi()
.to_pretty_json()
.expect("serialization cannot fail");
println!("{json}");
}