{
"$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-vulnerability-details-schema.json",
"title": "CodeVulnerabilityDetails",
"description": "Contains information on the code vulnerability identified in your Lambda function.",
"type": "object",
"properties": {
"cwes": {
"allOf": [
{
"$ref": "#/components/schemas/CweList"
},
{
"description": "The Common Weakness Enumeration (CWE) item associated with the detected vulnerability."
}
]
},
"detectorId": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "The ID for the Amazon CodeGuru detector associated with the finding. For more information on detectors see Amazon CodeGuru Detector Library."
}
]
},
"detectorName": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "The name of the detector used to identify the code vulnerability. For more information on detectors see CodeGuru Detector Library."
}
]
},
"detectorTags": {
"allOf": [
{
"$ref": "#/components/schemas/DetectorTagList"
},
{
"description": "The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see Java tags, or Python tags. "
}
]
},
"filePath": {
"allOf": [
{
"$ref": "#/components/schemas/CodeFilePath"
},
{
"description": "Contains information on where the code vulnerability is located in your code."
}
]
},
"referenceUrls": {
"allOf": [
{
"$ref": "#/components/schemas/ReferenceUrls"
},
{
"description": "A URL containing supporting documentation about the code vulnerability detected."
}
]
},
"ruleId": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "The identifier for a rule that was used to detect the code vulnerability."
}
]
},
"sourceLambdaLayerArn": {
"allOf": [
{
"$ref": "#/components/schemas/LambdaLayerArn"
},
{
"description": "The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in."
}
]
}
},
"required": [
"cwes",
"detectorId",
"detectorName",
"filePath"
]
}