The current behavior is not human-friendly because it is so easy to forget the correct nesting sequence when typing out YAML in the command line. The function update_from_builtin() should be modified to automatically promote primitives to composites where such promotion can be done unambiguously:
I have seen similar reports a dozen times: https://github.com/UAVCAN/yakut/issues/8
The current behavior is not human-friendly because it is so easy to forget the correct nesting sequence when typing out YAML in the command line. The function
update_from_builtin()
should be modified to automatically promote primitives to composites where such promotion can be done unambiguously:https://github.com/UAVCAN/pyuavcan/blob/master/pyuavcan/dsdl/_builtin_form.py#L124-L128