Skip to content
Snippets Groups Projects
Commit d30f71b0 authored by Udo Eisenbarth's avatar Udo Eisenbarth :speech_balloon:
Browse files

Make id for OpticRef mandatory while d13n.

parent 48224faa
No related branches found
No related tags found
1 merge request!34Add Uuid to OpticRef
......@@ -141,8 +141,9 @@ impl<'de> Deserialize<'de> for OpticRef {
let node_type = node_type.ok_or_else(|| de::Error::missing_field("type"))?;
let properties =
properties.ok_or_else(|| de::Error::missing_field("properties"))?;
let id = id.ok_or_else(|| de::Error::missing_field("id"))?;
let node =
create_node_ref(node_type, id).map_err(|e| de::Error::custom(e.to_string()))?;
create_node_ref(node_type, Some(id)).map_err(|e| de::Error::custom(e.to_string()))?;
node.optical_ref
.borrow_mut()
.set_properties(&properties)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment