mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 14:57:01 +00:00
start adding openapi support
This commit is contained in:
parent
3626e5360c
commit
df1d11e42d
5 changed files with 313 additions and 0 deletions
|
@ -21,7 +21,9 @@ futures = "0.1"
|
|||
gotham = "0.4"
|
||||
gotham_derive = "0.4"
|
||||
hyper = "0.12"
|
||||
indexmap = { version = "1.0", optional = true }
|
||||
mime = "0.3"
|
||||
openapiv3 = { version = "0.3", optional = true }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
||||
|
@ -29,3 +31,7 @@ serde_json = "1"
|
|||
fake = "2.2"
|
||||
log = "0.4"
|
||||
log4rs = { version = "0.8", features = ["console_appender"], default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["openapi"]
|
||||
openapi = ["indexmap", "openapiv3"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue