To be fair, I did this with SOAP/XML for one project. 99.999% of the time the messages are exactly the same except for the payload, and nobody cares about the other .001%.
If it's parametrizable why bother with completely dynamic generation? That's just more code to maintain.
Code can be verified, i.e. linted, tested, type checked, factored, formatted, and sometimes sorted. More maintainable than a blob of text on larger projects.
If it's parametrizable why bother with completely dynamic generation? That's just more code to maintain.