team-genny / genny

0 stars 1 forks source link

Pre-populate the database with schemas from YAML/JSON files at startup #23

Closed fergcb closed 4 months ago

fergcb commented 4 months ago

There should be a script which runs before the application is started in production, and can be run on-demand during development, which reads a directory of YAML and JSON files containing schemas, and writes them to the database.

JSON syntax for schemas is well established. Each JSON file should contain one schema.

YAML syntax will be new, but should follow an equivalent format to that used in JSON files/request bodies.