Amazon Inspector · Schema

CodeLine

Contains information on the lines of code associated with a code snippet.

ComplianceContainer SecurityEC2LambdaSecurityVulnerability Scanning

Properties

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

JSON Schema

inspector-code-line-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-inspector/refs/heads/main/json-schema/inspector-code-line-schema.json",
  "title": "CodeLine",
  "description": "Contains information on the lines of code associated with a code snippet.",
  "type": "object",
  "properties": {
    "content": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CodeLineContentString"
        },
        {
          "description": "The content of a line of code"
        }
      ]
    },
    "lineNumber": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Integer"
        },
        {
          "description": "The line number that a section of code is located at."
        }
      ]
    }
  },
  "required": [
    "content",
    "lineNumber"
  ]
}