-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
Replacing XML for templates #534
Comments
I would steer clear of JSON [1][2] and YAML [3], except maybe StrictYAML [4]. Googling for "JSON configuration" had two articles advising against it in the first four results for me. You can find plenty about YAML issues and gotchas as well. I have had minor (JSON) to medium (YAML) issues using them as configuration myself. On the other hand, with PEP 518 ( The articles above/below list Hjson, JSON5 and HOCON as further alternatives. I do not have much experience with either TOML or the other alternatives, but just from the looks of it I suggest TOML. [1] https://www.arp242.net/json-config.html |
Yeah, I share your experience. There are options which are more structured (e.g. HCL) but I'm also leaning towards something which is easy to understand and familiar. I keep this issue around for a bit longer before making a decision. Maybe @t3chn0m4g3 or @xandfury have some input as well. |
For #525 I had to write some XML which was rather unpleasant... I'm suggesting to replace our use of XML for defining the templates with something more human readable, suggestions welcome.
I would definitely like to maintain the ability to verify a template with a schema. Whatever we decide to replace XML with, doesn't need to support a schema. but we can verify the JSON we parse from the template.
The text was updated successfully, but these errors were encountered: