OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.54k stars 6.27k forks source link

update rust axum samples, add cargo fmt #18938

Closed wing328 closed 2 weeks ago

wing328 commented 2 weeks ago

a follow up PR to https://github.com/OpenAPITools/openapi-generator/pull/18895

PR checklist

wing328 commented 2 weeks ago

tests passed locally:


test output\rust-axum-test\src\types.rs - types::Nullable<T>::unwrap_or_default (line 562) ... ok
test output\rust-axum-test\src\types.rs - types::Nullable<T>::unwrap_or_else (line 249) ... ok

test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.92s

[INFO]
[INFO] --- exec:1.2.1:exec (clippy) @ RustServerTests ---
    Finished dev [unoptimized + debuginfo] target(s) in 0.26s
[INFO]
[INFO] --- exec:1.2.1:exec (fmt) @ RustServerTests ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  30.441 s
[INFO] Finished at: 2024-06-15T18:30:52+08:00
[INFO] ------------------------------------------------------------------------
[INFO] 5 goals, 5 executed
[INFO]
[INFO] Publishing build scan...
[INFO] https://ge.openapi-generator.tech/s/ri3mhv2p5l7nw