Skip to content

Commit ee8b6ac

Browse files
committed
java: Revert this hack
1 parent ebf6a1e commit ee8b6ac

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/types.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -752,15 +752,7 @@ impl FieldType {
752752
FieldType::Map { value_ty } => {
753753
format!("Map<String,{}>", value_ty.to_java_typename()).into()
754754
}
755-
FieldType::SchemaRef(name) => {
756-
// TODO(mendy): this corresponds to a `#[serde(untagged)]` enum `svix_server::v1::endpoints::background_tasks::Data`
757-
// we should change this server side
758-
if name == "Data" {
759-
"Object".into()
760-
} else {
761-
name.clone().into()
762-
}
763-
}
755+
FieldType::SchemaRef(name) => name.clone().into(),
764756
// backwards compat
765757
FieldType::StringConst(_) => "TypeEnum".into(),
766758
}

0 commit comments

Comments
 (0)