Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.55 KB

File metadata and controls

50 lines (36 loc) · 1.55 KB

json-schema-sensitivity-checker

npm version ci status

This CLI allows you to provide a JSONPath expression and run alex against any matching lines.

This tool is currently in alpha and has primarily been tested against OpenAPI files. PRs are welcome!

This project is very much inspired by and based on the work done on the json-schema-spell-checker by Michael Heap.

Installation

npm install -g json-schema-sensitivity-checker

Usage

Check against specific field names at any depth:

json-schema-sensitivity-checker -f 'description,title' path/to/openapi.json

Alternatively, you can specify a JSONPath expression yourself.

json-schema-sensitivity-checker -j '$..["description","title"]' path/to/openapi.json

Options

Usage: bin [options] source-file

Options:
  -V, --version           output the version number
  -t, --text              treat input as plain-text (not markdown)
  -l, --html              treat input as html (not markdown)
  -d, --diff              ignore unchanged lines (affects Travis only)
  -j, --json-path [path]  specify a jsonpath expression to match
  -c, --config [path]     specify a JSON formatted Alex config to pass to every match
  -f, --fields [fields]   specify a comma separated l