csvlint.io icon indicating copy to clipboard operation
csvlint.io copied to clipboard

Integrate schema creator

Open Floppy opened this issue 8 years ago • 2 comments

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.

Floppy avatar Jan 06 '17 14:01 Floppy

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?

jamesjefferies avatar Feb 14 '17 09:02 jamesjefferies

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

pezholio avatar Feb 14 '17 09:02 pezholio