Crates.io | oapi_generator |
lib.rs | oapi_generator |
version | 0.0.35 |
source | src |
created_at | 2020-06-05 15:47:45.963271 |
updated_at | 2023-07-18 12:56:05.788648 |
description | Code generator for OpenAPI specifications |
homepage | |
repository | https://gitlab.com/amentis/oapi_generator |
max_upload_size | |
id | 250375 |
size | 86,821 |
Generate code from OpenAPI specifications.
Forked from the original with the idea to make it into simple build-script crate as opposed to being a binary
cargo run -- path-to-specification path-to-output
oapi_generator::generate_oapi_server_stubs(speification, destination)
The hosting crate should have the following crates inside its Cargo.toml:
reqwest = { version = "0.10.6", features = [ "json" ] }
async-std = "1.6.0"
serde = { version = "1.0.111", features = [ "derive" ] }
serde_json = "1.0.53"
serde_urlencoded = "0.6.1"
actix-multipart = "0.2.0"
async-trait = "0.1.33"
url = "2.1.1"
thiserror = "1.0.19"
displaydoc = "0.1.6"
regex = "1.4.2"
lazy_static = "1.4.0"