{ "$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-snippet-error-schema.json", "title": "CodeSnippetError", "description": "Contains information about any errors encountered while trying to retrieve a code snippet.", "type": "object", "properties": { "errorCode": { "allOf": [ { "$ref": "#/components/schemas/CodeSnippetErrorCode" }, { "description": "The error code for the error that prevented a code snippet from being retrieved." } ] }, "errorMessage": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The error message received when Amazon Inspector failed to retrieve a code snippet." } ] }, "findingArn": { "allOf": [ { "$ref": "#/components/schemas/FindingArn" }, { "description": "The ARN of the finding that a code snippet couldn't be retrieved for." } ] } }, "required": [ "errorCode", "errorMessage", "findingArn" ] }