praetorian-inc / noseyparker

Nosey Parker is a command-line program that finds secrets and sensitive information in textual data and Git history.
Apache License 2.0
1.66k stars 79 forks source link

Add JSON Schema support via schemars #128

Closed bradlarsen closed 7 months ago

bradlarsen commented 7 months ago

This adds a JSON Schema for Nosey Parker's JSON report format. This is implemented using the schemars crate to mostly automatically generate the schema from Rust data types.

The schema generation mechanism is accessed using a new json-schema top-level command, which is hidden from help. This prints the generated schema to stdout.

The generated schema is included in the release builds.

Fixes #72.