From e0ef8a0bbcc03496c57047fd698be867b0700224 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 8 Mar 2022 15:02:30 +0100 Subject: [PATCH] Replace mediaType with type See https://github.com/WebThingsIO/gateway/issues/2808 --- src/thing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thing.rs b/src/thing.rs index e7da527..087a83c 100644 --- a/src/thing.rs +++ b/src/thing.rs @@ -349,7 +349,7 @@ impl Thing for BaseThing { if let Some(ui_href) = self.get_ui_href() { let mut ui_form = serde_json::Map::new(); - ui_form.insert("mediaType".to_owned(), json!("text/html")); + ui_form.insert("type".to_owned(), json!("text/html")); ui_form.insert("href".to_owned(), json!(ui_href)); forms.push(ui_form); }