dhall-python icon indicating copy to clipboard operation
dhall-python copied to clipboard

dhall.dump(s) is able to generate mal-typed Dhall

Open s-zeng opened this issue 5 years ago • 0 comments

Description

When passing mix-typed lists to dhall.dump(s), the resulting dhall that is outputted is not well-typed and cannot be read back with dhall.loads

Expected behaviour

python-dhall should error when receiving mal-typed inputs. For all inputs x, dhall.loads(dhall.dumps(x)) should either error on dumps, or be identitcal to the identity function on x, or else have some other way to translate heterogeneous lists and other dynamic data

s-zeng avatar Oct 31 '20 15:10 s-zeng