🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

json-schema-sensitivity-checker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-sensitivity-checker

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

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

openapi

FAQs

Package last updated on 17 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts