SARIF Ada

An Ada library generated with the JSON Schema for Ada tool for parsing and producing SARIF reports.

SARIF types and I/O subprograms

The program gen_json generates the necessary types and procedures to process SARIF files.

It generates all the necessary code from the official SARIF JSON Schema file sarif-schema-2.1.0.json downloaded from the official source.

Generating the code

Have a working Ada environment, with gnatchop and gnatpp binaries (present by default in GNAT toolchains) and alr available in your PATH (you can download Alire here).

Then you will need to build the gen_json tool from the vss-extra repository, and make it available in your PATH environment variable. Here are the instructions to achieve that:

git clone https://github.com/AdaCore/vss-extra.git
cd vss-extra/tools/json_schema
alr build
export PATH=`pwd`/../../.objs/tools:$PATH

Now you can generate the code with a single make generate command.

Description
No description provided
Readme Apache-2.0 147 KiB
Languages
Ada 99.9%