commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Zylstra (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CSV-109) Support external CSV schema definition
Date Tue, 18 Mar 2014 21:08:42 GMT
Jay Zylstra created CSV-109:
-------------------------------

             Summary: Support external CSV schema definition
                 Key: CSV-109
                 URL: https://issues.apache.org/jira/browse/CSV-109
             Project: Commons CSV
          Issue Type: Wish
          Components: Parser
    Affects Versions: 1.0
            Reporter: Jay Zylstra
            Priority: Minor


As XML has XSD, so CSV needs an external schema definition file which defines the schema of
the flat file format and the values it contains.  Programmatically adding constraints, as
supported by {{org.supercsv.cellprocessor.constraint.StrRegEx}}, are useful but not portable.
 Fortunately, Microsoft has already created such a CSV schema definition file format called
[Schema.ini|http://msdn.microsoft.com/en-us/library/ms709353(v=vs.85).aspx].

It is my suggestion to add file and data parsing validation to Apache Commons CSV by adopting
support for _Schema.ini_, bringing this long overdue functionality to the Java world.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message