-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ToJson and FromJson liquid files for System.Text.Json #1339
Conversation
4a5434d
to
401e977
Compare
@RicoSuter ready for review |
In the end we should clean this up as I'm not a fan to parse/split etc. code in the templates.. /cc @jeremyVignelles |
I might have missed something, but what's the rationale of this? why are there two instructions that you need to split? |
Initially, the
Thus, I chose the first option. Perhaps the issue can be solved in another way. If you have any ideas on how to do this, I would be grateful. |
It seems that the
I'd be OK for breaking backward compatibility to add a new Method/Property that would be specific to STJ That said, I don't have the whole picture and that's still quite obscure for me, but making assumption on the shape of the generated code seems really rigid to me. What if I want to override the C# code to generate the converters my own way ? |
Need to think about how to refactor the method to make it more flexible. |
Related: #1341 |
Now generates:
Fixed in this PR (need to check).