Skip to content

Commit 65df79a

Browse files
authored
fix: Derive ToSchema not work for unit enum variants (#875)
1 parent 0fbcae7 commit 65df79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oapi-macros/src/schema/enum_variant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ impl TryToTokens for UntaggedEnum {
274274

275275
tokens.extend(quote! {
276276
#oapi::oapi::schema::Object::new()
277-
.schema_type(#oapi::oapi::openapi::schema::BasicType::Null)
277+
.schema_type(#oapi::oapi::schema::BasicType::Null)
278278
.default_value(#oapi::oapi::__private::serde_json::Value::Null)
279279
#title
280280
});

0 commit comments

Comments
 (0)