diff --git a/src/routes.rs b/src/routes.rs index 2ddf57f..1fae5e9 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -332,7 +332,7 @@ pub struct InEntry { } #[derive(Debug, Clone, Deserialize)] -#[serde(untagged)] +#[serde(untagged, deny_unknown_fields)] pub enum PutInput { Entry(InEntry), EntryList(Vec), @@ -436,11 +436,7 @@ pub async fn put_object( let label_entry = match &address { Address::Hash(_) | Address::Uuid(_) => None, - Address::Attribute(attribute) => Some(Entry { - entity: address.clone(), - attribute: LABEL_ATTR.to_string(), - value: format!("ATTRIBUTE: {attribute}").into(), - }), + Address::Attribute(_) => None, Address::Url(url) => Some(Entry { entity: address.clone(), attribute: LABEL_ATTR.to_string(),