Thoth.Json icon indicating copy to clipboard operation
Thoth.Json copied to clipboard

Fix #144: Auto coders for nested anon records

Open alfonsogarciacaro opened this issue 3 years ago • 1 comments

Fix #144: The problem was Fable assigns an empty name for anonymous records, which conflicts with the internal coder map when having multiple anonymous records. Maybe Fable should assign a name to anonymous records same as dotnet F# does, but giving that anonymous records are represented as plain JS objects, for now the simplest solution is to avoid adding anonymous records to the internal map (they cannot be recursive so there's actually no need for it).

alfonsogarciacaro avatar Jul 30 '22 06:07 alfonsogarciacaro

Thank you for investigating.

Feels a bit hacky ahah

MangelMaxime avatar Jul 30 '22 12:07 MangelMaxime