Skip to content

Check the sensitivity of your JSON Schema (including OpenAPI!) documents

Notifications You must be signed in to change notification settings

cbetta/json-schema-sensitivity-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check the sensitivity of your JSON Schema (including OpenAPI!) documents

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published