{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-inspector/refs/heads/main/json-structure/inspector-code-file-path-structure.json", "name": "CodeFilePath", "description": "Contains information on where a code vulnerability is located in your Lambda function.", "type": "object", "properties": { "endLine": { "allOf": [ { "$ref": "#/components/schemas/Integer" }, { "description": "The line number of the last line of code that a vulnerability was found in." } ] }, "fileName": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The name of the file the code vulnerability was found in." } ] }, "filePath": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The file path to the code that a vulnerability was found in." } ] }, "startLine": { "allOf": [ { "$ref": "#/components/schemas/Integer" }, { "description": "The line number of the first line of code that a vulnerability was found in." } ] } }, "required": [ "endLine", "fileName", "filePath", "startLine" ] }