package-analysis icon indicating copy to clipboard operation
package-analysis copied to clipboard

Make it impossible to mess up the schema.json

Open calebbrown opened this issue 3 years ago • 1 comments

The schema.json repeats the "import" and "install" sections, which means you have to remember to update both sections. And can cause issues like: #356. If only one section is updated the other will stop being imported.

Here are a couple of ideas:

  1. make "phase" a field in the schema, and remove the duplication (my preference, but old data can no longer be imported)
  2. add a check that is executed by a GitHub action that validates the JSON.

calebbrown avatar Sep 12 '22 00:09 calebbrown

At the very least, having a README for the schema.json where you can see the schema at a glance and make notes about this kind of stuff would make it "less possible" to mess it up.

maxfisher-g avatar Sep 12 '22 01:09 maxfisher-g

Subsumed under #960

maxfisher-g avatar Nov 08 '23 00:11 maxfisher-g