Hi!
Thanks for the project, it is very useful.
I would kindly ask about a decision behind the empty maps handling.
Currently, on cast it sees an empty map as a nil value. But in my case it is possible to have embedded empty structs, because the name (module) of the struct is a value by itself.
I also use :use_parent_field_for_type parameter to get the structure type. Everything works until I try to read a record with an empty struct (and it is clear why: nothing is written to the DB if parameters map is empty) and if I add the __type__ field into a params map - I get ** (CondClauseError) no cond clause evaluated to a truthy value as per one the issues.
So, I'm trying to understand how to solve the problem other than adding fake data into the empty structures.
Thank you!
Hi!
Thanks for the project, it is very useful.
I would kindly ask about a decision behind the empty maps handling.
Currently, on cast it sees an empty map as a nil value. But in my case it is possible to have embedded empty structs, because the name (module) of the struct is a value by itself.
I also use
:use_parent_field_for_typeparameter to get the structure type. Everything works until I try to read a record with an empty struct (and it is clear why: nothing is written to the DB if parameters map is empty) and if I add the__type__field into a params map - I get** (CondClauseError) no cond clause evaluated to a truthy valueas per one the issues.So, I'm trying to understand how to solve the problem other than adding fake data into the empty structures.
Thank you!