Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-109

Support external CSV schema definition

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: Patch Needed, 1.x
    • Component/s: Parser
    • Labels:
      None

      Description

      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.

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              JayZ Jay Zylstra
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: