Closed drodarie closed 3 months ago
Should we create a Node class for Requirements? or should tree_of
returns str(value)
if the __inv__
and __tree__
are not defined.
I think the best way is for store_active_config
to use bsb-json
instead of just json.dumps
. If the issue persists we can solve it centrally from bsb-json
with a custom JSON encoder. Falling back to str(value)
seems detrimental because it would silence the location of similar issues in the future.
The PackageRequirement
type handler does have an __inv__
method, so maybe track down why it's not being invoked here, fix it, and add tests. This is one of those things that I feel like I've "fixed" 2 or 3 times already but fixing 1 things breaks another, and without tests we won't be able to pin down both issues at the same time :D
raises the following exception:
This happens because
Requirement
class does not have a__tree__
or__inv__
function and is therefore not properly parsed to a tree.