Re:Select Transform: JSON template over JSON
by gliechtenstein on Wednesday October 18, 2017 @10:19AM
(#15499350)
> That's more human readable, but also slightly inconsequent - you wouldn't be able to validate such a template with json schema for example.
Could you elaborate?
Re:Select Transform: JSON template over JSON
by elcapitan on Wednesday October 18, 2017 @10:53AM
(#15499591)
Just to use the json-schema example - because the transform uses templating syntax inside strings, I wouldn't be able to write a json-schema to check if a given transform object is valid or not, which can quickly become an issue for growing sizes of transforms.
This particular implementation looks a bit messy though - XSLT is valid XML and Xpath, while this solution uses templating syntax. That's more human readable, but also slightly inconsequent - you wouldn't be able to validate such a template with json schema for example.