Commit d27ea52
committed
Proof of Concept: custom fieldname support
This is a proof of concept to support validating CSVs that don't include
a header row. The implementation allows a user to define a sequence of
field names and passes these through to the underlying DictReader
instances. The default behavior remains unchanged. I did a quick manual
test with a slight modification of the example Vlad object and sample
CSV contents from the readme.
If this is a useful construct, I'll be happy to fill in the
documentation and tests for this option.
Resolves #88.1 parent d831d62 commit d27ea52
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
127 | | - | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | | - | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
0 commit comments