Skip to content

Commit

Permalink
sarif: add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
frabert committed Jul 26, 2024
1 parent 2297d8d commit aad0797
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sarif/include/gap/sarif/definitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

#pragma once

//
// These definitions were generated from a JSON Schema description of SARIF
// found at https://github.com/microsoft/sarif-python-om/blob/7a84e8c2b2b9d8b9a8d25b1d376f039a0bf92a7c/sarif-schema-2.1.0.json
//
// The naming convention used is to convert all of the definition names from camelCase to snake_case,
// suffixed with either _struct or _enum depending on the kind.
// "Nested" definitions are prefixed by the name of the parent definition, for example the `headers`
// property of the `webRequest` definition is called web_request_headers_struct, in order to
// distinguish it from the `headers` property of the `webResponse` definition.
// Property names are kept as-is.
//
// Enum value names are converted from camelCase to PascalCase and prefixed with `k`.
//

#include <cstdint>
#include <forward_list>
#include <optional>
Expand Down

0 comments on commit aad0797

Please sign in to comment.