Confidenceman02 / django-elm

A framework for using Elm programs in Django
MIT License
29 stars 1 forks source link

CustomTypeFlag decoder codegen incorrect when in List and Nullable flags #89

Closed Confidenceman02 closed 6 months ago

Confidenceman02 commented 6 months ago

Pipeline decoder code is incorrect for CustomTypeFlag when used with List and Nullable flags.

The following causes incorrect decoder pipelines

ObjectFlag({"something": ListFlag(CustomTypeFlag(variants=[("A", StringFlag()]))})

ObjectFlag({"something": NullableFlag(CustomTypeFlag(variants=[("A", StringFlag()]))})

Fuzzers would have caught this but CustomTypeFlag's are not being fuzzed due to name clash issues that I need to work around.

Confidenceman02 commented 6 months ago

Released in 0.10.0