Describe the bug
ThingsDB allows to write and int definition which allows and "integer" enumerator to expose it's values.
By the same logic, *str should expose the names of the enumerator as they are type str and the * prefix wrap-flag tells ThingsDB to expose enumerator keys.
To Reproduce
The following code should expose B
set_enum('E', {A: 41, B: 42});
.e = E{B};
.wrap(&{e: '*str'})
Expected behavior
Expecting the output:
Describe the bug
ThingsDB allows to write and
intdefinition which allows and "integer" enumerator to expose it's values.By the same logic,
*strshould expose the names of the enumerator as they are typestrand the*prefix wrap-flag tells ThingsDB to expose enumerator keys.To Reproduce
The following code should expose
BExpected behavior
Expecting the output:
{ "e": "B" }