Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema: update command description #159

Merged
merged 1 commit into from
Feb 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/cmd/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ macro_rules! fail {
}

static USAGE: &str = "
Infer schema from CSV data and output in JSON Schema format.
Generate JSON Schema from CSV data.

This command generates reference JSON Schema (Draft 7) from CSV data,
including simple validation rules based on data statistics.
Please verify and adjust the Type, Value Constraints, and Required Fields as appropriate.

Example output file from `mydata.csv`. If piped from stdin, then filename is `stdin.csv`.

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ macro_rules! command_list {
replace Replace patterns in CSV data
reverse Reverse rows of CSV data
sample Randomly sample CSV data
schema Infer schema from CSV data
schema Generate JSON Schema from CSV data
search Search CSV data with a regex
searchset Search CSV data with a regex set
select Select, re-order, duplicate or drop columns
Expand Down
2 changes: 1 addition & 1 deletion src/mainlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ macro_rules! command_list {
replace Replace patterns in CSV data
reverse Reverse rows of CSV data
sample Randomly sample CSV data
schema Infer schema from CSV data
schema Generate JSON Schema from CSV data
search Search CSV data with a regex
searchset Search CSV data with a regex set
select Select, re-order, duplicate or drop columns
Expand Down