Description
I've changed the title to be a meta discussion, so that we don't have the same discussion in multiple issues:
- optional flags Proposal: Add flag to mark test cases as optional to canonical schema #1492
- immutability flags High-Scores: add immutability test #1493
- other types of tests Schema optimises for testing
f(inputs) = output
. What of other types of tests? #1225 - multiline "type"
- identity field Proposal: Add canonical data "identifier" field to separate concern from test "description" #1473 (to avoid compromising descriptions Robot simulator descriptions too long #1525 to fit this purpose)
It seems there really is a lot of ask for new fields and there also seems to be a notion that we don't want to break the current generators.
Personally, I am currently parsing the comments for special behaviour and this means that my generators will all break when someone decides the comments should be a special format. I can derive no special meaning from the english in these comments. I don't think this is the right place to hold special cases, but it is for things not covered in the current scheme.
I know that you (@pgaspar @ErikSchierboom @coriolinus @sshine @SaschaMann and @NobbZ) are all involved with writing and maintaining the generators, or at least the discussions on GitHub:
- I think it would be wise to discuss first if we'll add new keys, if at all, because so far each issue has already raised the "yeah okay but we don't really need it and it costs me work"-type comment
- ...and then which ones are candidates, so we can merge it at once and the burden on maintainers is much lower, as the raised point just mentioned is valid.
Original issue about multiline.
There is canonical data such as food-chain
and twelve-days
that correctly comment:
JSON doesn't allow for multi-line strings, so all verses are presented
here as arrays of strings. It's up to the test generator to join the
lines together with line breaks.
Okay, that's great! But in this case I think it would be great if we'd add a meta property (and keep a list of those, as there are more like these (such as a property preferably being a constant or at least immutable) so that we can automate generation of these exercises.