We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d65b82 commit eae98a6Copy full SHA for eae98a6
codegen/src/lib.rs
@@ -143,7 +143,7 @@ fn generate_custom_union(custom_union: &CustomUnion) -> TokenStream {
143
quote! {
144
#[doc = #description]
145
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
146
- #[serde(untagged)]
+ #[serde(tag = "type")]
147
pub enum #name {#option_decls}
148
}
149
0 commit comments