Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Test and validate configuration files at startup #19

Open
xakraz opened this issue Dec 31, 2015 · 1 comment
Open

Test and validate configuration files at startup #19

xakraz opened this issue Dec 31, 2015 · 1 comment

Comments

@xakraz
Copy link

xakraz commented Dec 31, 2015

Like some Unix software, it would be nice to have some preventive "checks" on configuration files at startup or before restarting DNSAgent when running as a service to prevent errors...

@twobob
Copy link

twobob commented Apr 30, 2017

you could patch in https://github.com/JamesNK/Newtonsoft.Json and do something like
http://stackoverflow.com/questions/14977848/how-to-make-sure-that-string-is-valid-json-using-json-net
or use the 4.5 stuff that is also listed in that answer.
Another alternative would be to have a rough cascade of regexp that could catch obvious mismatched pairs et cetera.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants