mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sai Harsha Vardhan <56996463+sai-harsha-vardhan@users.noreply.github.com> Co-authored-by: Sahkal Poddar <sahkalplanet@gmail.com> Co-authored-by: Amisha Prabhat <55580080+Aprabhat19@users.noreply.github.com> Co-authored-by: Sarthak Soni <76486416+Sarthak1799@users.noreply.github.com> Co-authored-by: shashank_attarde <shashank.attarde@juspay.in> Co-authored-by: Aprabhat19 <amishaprabhat@gmail.com> Co-authored-by: sai-harsha-vardhan <harsha111hero@gmail.com> Co-authored-by: Sahkal Poddar <sahkal.poddar@juspay.in> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
16 lines
470 B
Rust
16 lines
470 B
Rust
mod openapi;
|
|
mod routes;
|
|
|
|
fn main() {
|
|
let file_path = "openapi/openapi_spec.json";
|
|
#[allow(clippy::expect_used)]
|
|
std::fs::write(
|
|
file_path,
|
|
<openapi::ApiDoc as utoipa::OpenApi>::openapi()
|
|
.to_pretty_json()
|
|
.expect("Failed to serialize OpenAPI specification as JSON"),
|
|
)
|
|
.expect("Failed to write OpenAPI specification to file");
|
|
println!("Successfully saved OpenAPI specification file at '{file_path}'");
|
|
}
|