Open agentultra opened 4 years ago
Good point! We have just started an implementation of code generation monad that works around this issue, I am willing to tutor anybody that wants to implement this.
@agentultra @mgajda I stumbled into a similar issue working with 3rd party API. What would be the appropriate handler for this? Enumeration might be a good choice to resolve the conflict but it doesn't provide enough context later on.
@sigrlami Good way to fix this would be to implement the same CodeGen
monad as used in xml-typelift
.
Here is the presentation: https://www.migamake.com/presi/art-of-industrial-code-generation-mar-6-2019-uog-singapore.pdf
I can mentor the change, but at the moment I am rather busy making next-gen type inference for json-autotype
.
@agentultra Would your work also fix this issue?
Sure would
Same issue occurs also with capital letters:
{
"Synced": true,
"synced": true
}
Will generate a record with a duplicated field name