legumeinfo / datastore-specifications

Specifications for directory naming, file naming, file contents in the LIS datastore
2 stars 0 forks source link

a fairly simplistic json-schema file for our README.yml files #12

Closed adf-ncgr closed 2 years ago

adf-ncgr commented 2 years ago

I've added the rest of the attributes from the list.

pajv -s readme.schema.json -d /usr/local/www/data/v2/Arachis/GENUS/maps/TT_Fleur11_x_araip-aradu_a.map.C79T/README.TT_Fleur11_x_araip-aradu_a.map.C79T.yml --all-errors --coerce-types=array --remove-additional=all --changes

correctly recognizes the invalidity of the two props that ought to be strings but are given as lists

however it also complains about empty and unquoted dates, which is probably not ideal. Anyway, it's a start.

sammyjava commented 2 years ago

I'm just trying to find the "extremely diggable" icon.

sammyjava commented 2 years ago

I wonder if there's a way to reverse this and create a README.yml template off of the JSON spec. So we update the spec in the JSON and automagically generate a conformant README template for handiness. Not that it's that hard to update the file, but we're all about the fancy.

adf-ncgr commented 2 years ago

I wonder if there's a way to reverse this and create a README.yml template off of the JSON spec. So we update the spec in the JSON and automagically generate a conformant README template for handiness. Not that it's that hard to update the file, but we're all about the fancy.

yes, that would be nifty- something like this https://github.com/json-schema-faker but with YAML output I guess? sounds like a good little project for an intern