[
:juridical_person_document,
re_developments: [properties: [re_development: [:re_developer]]],
:legal_address
]
As a literal, this isn’t valid syntax and makes the compiler complain:
** (SyntaxError) iex:18:67: unexpected expression after keyword list. Keyword lists must always come last in lists and maps. Therefore, this is not allowed:
[some: :value, :another]
%{some: :value, another => value}
Instead, reorder it to be the last entry:
[:another, some: :value]
%{another => value, some: :value}
Syntax error after: ','
|
18 | re_developments: [properties: [re_development: [:re_developer]]],
| ^
The closest you can get is:
[
:juridical_person_document,
{:re_developments, [properties: [re_development: [:re_developer]]]},
:legal_address
]
It’s certainly possible to remove the extra lists wrapped around some elements, but I’d start by looking into where this data comes from - specifically, why every keyword list seems to end up with an extra list wrapped around it.


















