Open peterdesmet opened 7 years ago
Yeah, it's something we have been thinking about and should probably document as a feature request (GitHub issue). The two disadvantages I see are:
@tucotuco:
Hmmm. What if there was a step to grab the vocabs to local files and make them part of the specification. Not fully self-contained still, but a step closer?
Yes, but rather than separate local files, I would write these to the spec file itself, as lists. That would keep the specs contained to a single file, with versioning.
Also, this retrieving and local writing seems to be part of implementation, not specification. Still, it would be nice to indicate the url of the external vocab in the specs. The simplest solution is to indicate this as a comment after the list, but that might only be human-readable. I don't have any ideas on how to indicate it otherwise...
I agree that the specification of the external vocab in the specs is a good thing. It means that, as an implementation, one could take a WHIP file that has the external link and no vocabs, run it through a "flesher" and get the vocabs inserted in the resulting new WHIP file, which could then be edited to remove and vocab values you did not want in there.
Tempting... :relaxed: How would such a syntax look like?
Documenting email discussion with @tucotuco.
@tucotuco: