CodeLine

The line of code where a finding was detected.

AmazonSecuritySASTCode AnalysisDevSecOpsDeveloper Tools

Properties

Name Type Description
content object
number object
View JSON Schema on GitHub

JSON Schema

amazon-codeguru-security-code-line-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codeguru-security/refs/heads/main/json-schema/amazon-codeguru-security-code-line-schema.json",
  "title": "CodeLine",
  "description": "The line of code where a finding was detected.",
  "type": "object",
  "properties": {
    "content": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "The code that contains a vulnerability."
        }
      ]
    },
    "number": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Integer"
        },
        {
          "description": "The code line number."
        }
      ]
    }
  }
}