-
Notifications
You must be signed in to change notification settings - Fork 288
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
What about a more human-friendly format? #395
Comments
I can't speak to YAML in particular, but I believe @myndzi, @goneall, and I had talked about formatting (presentation-layer) markup, with me asking whether it's needed at all. @myndzi's response was that it was, at least if we wanted to be able to present the license text in a way that remotely resembles the original license text. Additionally, there are lots of XML tools that we can use to make the XML-format files more susceptible to human editing. I don't know that YAML offers as much in the way of strict validation. Perhaps you'd like to propose YAML as a supported output format, rather than the authoritative format for the master files? |
@bradleeedmondson supporting multiple formats would not make sense to me. On thing that I cannot understand is why adding markup to plain text license texts would be needed. Wrapping a the text in a |
My understanding is that the XML is really intended for the "master" files, and those will be used to generate the supported formats (plaintext, RDF, JSON, etc.). You could probably add YAML to that list without much effort, once the XML format is stable. But I understood part of your initial comment to suggest changing the master files to YAML, which is something we'd want to get the entire tech team and legal team to weigh in on (and in a sense it may be a little late, so we'd want to look at the cost/benefit of transitioning). Once the XML is stable, the XML license list is complete, the tools to work with the XML are available, and the supported file formats are being generated, I don't think we'll miss the accessibility of YAML. |
I've also thought of the master XML as more of a format internal to the legal team - not something that would be directly consumed by tools outside of the SPDX community. There is a tool that translates the master file format into 5 different consumable formats including JSON and HTML. If there is interest, we could add YAML with a modest amount of effort. @pombredanne to answer your earlier question, we did spend some time discussing different format before going down this path. No one was a big fan of XML, however, the additional structure provided by XML to tag items like titles, copyrights, optional text, and variable text is what led us in that direction. @myndzi did quite a bit of analysis on the approach. |
ok, so I guess I can close this then. Thank you for chiming in. |
I deleted some comments I made because I think it would be more productive for me to open a new issue than rant here. :) |
I wonder if a simpler format would be better? Something like YAML for metadata and text and a simple
{{mustache-style}}
curly braces markup when needed? Eventually eschewing any markup of the format?The text was updated successfully, but these errors were encountered: