mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-24 02:20:51 +00:00
* fix(rust): simplify None logic Used to be a code path (where isFreeFormObject and something else) where we could end up with two `: None` `: None`'s This does add the None for the !required && !isArray && !isMap && !isNullable case (where nothing would have been printed before. Above for the type on the individual vars inside the struct definition the logic is simply if not required then it's optional. If it's optional we want a None when creating a new struct. * ci: add tests for failure
21 lines
550 B
TOML
21 lines
550 B
TOML
[package]
|
|
name = "empty-object-hyper"
|
|
version = "1.0.0"
|
|
authors = ["OpenAPI Generator team and contributors"]
|
|
description = "Ensure rust supports empty objects using serde::Value"
|
|
# Override this license by providing a License Object in the OpenAPI.
|
|
license = "Unlicense"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
serde = "^1.0"
|
|
serde_derive = "^1.0"
|
|
serde_json = "^1.0"
|
|
url = "^2.2"
|
|
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
|
hyper = { version = "~0.14", features = ["full"] }
|
|
hyper-tls = "~0.5"
|
|
http = "~0.2"
|
|
base64 = "~0.7.0"
|
|
futures = "^0.3"
|