Support nested object

This commit is contained in:
nora 2024-05-29 20:20:36 +02:00
parent 55506d3748
commit b50fa51e9c
8 changed files with 143 additions and 96 deletions

View file

@ -50,7 +50,7 @@ fn data_source_model_inner(
let #tf::Some(#name) = obj.remove(#name_str) else {
return #tf::Err(
#tf::Diagnostics::from(#tf::Diagnostic::error_string(
format!("Expected property '{}', which was not present", #name_str),
format!("Expected property '{}' when deserializing value, which was not present in the value", #name_str),
).with_path(path.clone()))
);
};