Data-Liberation-Front / csvlint.io

Check that your CSV files are valid
http://csvlint.io
MIT License
73 stars 12 forks source link

Integrate schema creator #278

Open Floppy opened 7 years ago

Floppy commented 7 years ago

CSVlint might be a sensible place to allow people to create schemas. Once someone's uploaded a valid CSV, they could then get an interface to make a schema from it. @slowe created https://github.com/odileeds/JSONSchema, which does this, and @pezholio created a ruby gem based on it using the same algorithms in https://github.com/theodi/csv2schema.

jamesjefferies commented 7 years ago

Should this be an option on 'Adding a Dataset', i.e. a checkbox saying 'Generate my schema automatically' or an option from 'Edit dataset' or both?

Should we do this by default or not when a schema is added?

pezholio commented 7 years ago

Also, it's worth looking at https://github.com/frictionlessdata/jsontableschema-rb which is slightly more fully-featured, but I'm not sure if the generated schemas are 100% CSVlint compatible