dummy-json icon indicating copy to clipboard operation
dummy-json copied to clipboard

Is there any method to validate the template.

Open icodebuster opened this issue 8 years ago • 2 comments

Is there any method to validate the template before converting to JSON.

Any help :)

icodebuster avatar Apr 28 '16 06:04 icodebuster

Not that I'm aware of, I'm afraid. The template is not valid JSON so it won't pass a JSON validator, what you need is a Handlebars validator. I did a quick search and couldn't find one. I'll leave this issue open in case anyone else has a good idea.

webroo avatar Apr 30 '16 07:04 webroo

@webroo I too will try something...for time being what I have done is I am validating the generated JSON data and based on that I prompting the user if there is an error in the template.

icodebuster avatar Apr 30 '16 14:04 icodebuster