mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-08-20 11:02:41 +00:00
save: add utoipa for OAPI generation
This commit is contained in:
parent
71c5f038fa
commit
acaf0f955a
11 changed files with 212 additions and 610 deletions
8
blah-types/examples/openapi.rs
Normal file
8
blah-types/examples/openapi.rs
Normal 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}");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue