Skip to content

Commit 55d095e

Browse files
Update openapiv3 requirement from =0.4.0 to =1.0.0 (#20)
Updates the requirements on [openapiv3](https://github.com/glademiller/openapiv3) to permit the latest version. - [Release notes](https://github.com/glademiller/openapiv3/releases) - [Commits](glademiller/openapiv3@v0.4.0...v1.0.0) --- updated-dependencies: - dependency-name: openapiv3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dominic <[email protected]>
1 parent bbac202 commit 55d095e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include = ["src/**/*", "LICENSE", "crates-io.md"]
1919
indexmap = "1.7"
2020
linked-hash-map = "0.5.4"
2121
openapi_type_derive = { path = "./derive", version = "0.2.5" }
22-
openapiv3 = "=0.4.0"
22+
openapiv3 = "=1.0.0"
2323
serde_json = "1.0"
2424

2525
# optional dependencies / features

derive/src/codegen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ fn gen_enum(variants: &[LitStr]) -> TokenStream {
114114
let openapi = path!(::openapi_type::openapi);
115115
quote! {
116116
{
117-
let mut enumeration = <::std::vec::Vec<::std::string::String>>::new();
118-
#(enumeration.push(::std::string::String::from(#variants));)*
117+
let mut enumeration = <::std::vec::Vec<::std::option::Option<::std::string::String>>>::new();
118+
#(enumeration.push(::std::option::Option::Some(::std::string::String::from(#variants)));)*
119119
::openapi_type::OpenapiSchema::new(
120120
#openapi::SchemaKind::Type(
121121
#openapi::Type::String(

src/impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ fn array_schema<T: OpenapiType>(unique_items: bool) -> OpenapiSchema {
166166
name: None,
167167
description: None,
168168
schema: SchemaKind::Type(Type::Array(ArrayType {
169-
items,
169+
items: Some(items),
170170
min_items: None,
171171
max_items: None,
172172
unique_items

0 commit comments

Comments
 (0)