convert csv to json and use schema to invalidation