Now that #602 was merged, it would be great to have all the canonical-data.json files compliant with the JSON Schema, so that we could automatically check them for errors in the future.
At the moment, we have 74 canonical-data.json files, but only 3 are compliant.
When porting the files, I guess it would be nice to follow a few guidelines to make reviewing easier:
- Distinct commits with the following:
exercise-name: Make canonical-data.json compliant, containing the minimal changes to make the test suite compliant.
exercise-name: Fix canonical-data.json formatting, with the changes needed to make it readable again.
- pull-request's title:
exercise-name: Make exercise schema-compliant
- pull-request's body: at least a line containing
Related to #625.
version should start at 1.0.0 and follow the exercise property.
Unless there is already a standard in place that I don't know, I suggest formatting with 2-spaces indentation in the second commit, for consistency, which is already the default when running jq '.' canonical-data.json.
Of course, most of the exercises will demand additional changes to a standard formatting, to make them more compact and readable.
Edit: Just to be clear, this issue is not about style in designing the test suite. Changes that go beyond fixing the test suite to be compliant and fix it to be consistently formatted after that should be avoided here!
canonical-data.json compliance
Now that #602 was merged, it would be great to have all the
canonical-data.jsonfiles compliant with the JSON Schema, so that we could automatically check them for errors in the future.At the moment, we have 74
canonical-data.jsonfiles, but only 3 are compliant.When porting the files, I guess it would be nice to follow a few guidelines to make reviewing easier:
exercise-name: Make canonical-data.json compliant, containing the minimal changes to make the test suite compliant.exercise-name: Fix canonical-data.json formatting, with the changes needed to make it readable again.exercise-name: Make exercise schema-compliantRelated to #625.versionshould start at 1.0.0 and follow theexerciseproperty.Unless there is already a standard in place that I don't know, I suggest formatting with 2-spaces indentation in the second commit, for consistency, which is already the default when running
jq '.' canonical-data.json.Of course, most of the exercises will demand additional changes to a standard formatting, to make them more compact and readable.
Edit: Just to be clear, this issue is not about style in designing the test suite. Changes that go beyond fixing the test suite to be compliant and fix it to be consistently formatted after that should be avoided here!
canonical-data.jsoncompliance