framework icon indicating copy to clipboard operation
framework copied to clipboard

Cli validation against a jsonschema

Open ylaizet opened this issue 1 year ago • 1 comments

As far as I understand, it is not possible to validate a csv file via cli command directly with a json schema. It looks like we need first to convert the jsonschema into a tableschema with the "Schema.from_jsonschema" python command. Wouldn't be interesting to be able to use directly a jsonschema in the cli for easy validation? Or maybe I missed this feature.

ylaizet avatar Apr 28 '23 14:04 ylaizet

Hi @ylaizet,

Thanks! It's not supported yet but I think it's a good idea something like:

frictionless validate table.csv --jsonschema <schema>

The mapper is already implemented so it will be a simple feature to add

roll avatar May 01 '23 09:05 roll