Skip to content

Commit a290be3

Browse files
authored
Wire up the 'csv2' schema handling and write new and update existing docs and samples. (#180)
1 parent d24ee6a commit a290be3

23 files changed

+1181
-76
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ writing. Learn the concept and tricks in depth.
2323
- [All About Transforms](./doc/transforms.md): everything about `transform_declarations`.
2424
- [Use of `custom_func`, Specially `javascript`](./doc/use_of_custom_funcs.md): An in depth look of how `custom_func`
2525
is used, specially the all mighty `javascript` (and `javascript_with_context`).
26-
- [CSV Schema in Depth](./doc/csv_in_depth.md): everything about schemas for CSV input.
26+
- [CSV Schema in Depth](./doc/csv2_in_depth.md): everything about schemas for CSV input.
2727
- [Fixed-Length Schema in Depth](./doc/fixedlength2_in_depth.md): everything about schemas for fixed-length (e.g. TXT)
2828
input
2929
- [JSON/XML Schema in Depth](./doc/json_xml_in_depth.md): everything about schemas for JSON or XML input.
@@ -35,7 +35,7 @@ References:
3535
- [Custom Functions](./doc/customfuncs.md): a complete reference of all built-in custom functions.
3636

3737
Examples:
38-
- [CSV Examples](extensions/omniv21/samples/csv)
38+
- [CSV Examples](extensions/omniv21/samples/csv2)
3939
- [Fixed-Length Examples](extensions/omniv21/samples/fixedlength2)
4040
- [JSON Examples](extensions/omniv21/samples/json)
4141
- [XML Examples](extensions/omniv21/samples/xml).
@@ -67,6 +67,7 @@ situations.
6767
- Golang 1.14 or later.
6868

6969
## Recent Major Feature Additions/Changes
70+
- added `csv2` file format that supersedes the original `csv` format with support of hierarchical and nested records.
7071
- 2022/9: 1.0.3 released: added `fixedlength2` file format that supersedes the original `fixed-length` format with support of hierarchical and nested envelopes.
7172
- 1.0.0 Released!
7273
- Added `Transform.RawRecord()` for caller of omniparser to access the raw ingested record.

cli/cmd/serverCmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func httpPostTransform(w http.ResponseWriter, r *http.Request) {
154154

155155
var (
156156
sampleDir = "../../extensions/omniv21/samples/"
157-
sampleFormats = []string{"csv", "json", "xml", "fixedlength2", "edi"}
157+
sampleFormats = []string{"csv2", "json", "xml", "fixedlength2", "edi"}
158158
sampleInputFilenamePattern = regexp.MustCompile("^([0-9]+[_a-zA-Z0-9]+)\\.input\\.[a-z]+$")
159159
)
160160

0 commit comments

Comments
 (0)