CodeSnippetError is a JSON Structure definition published by Amazon Inspector, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-inspector/refs/heads/main/json-structure/inspector-code-snippet-error-structure.json",
"name": "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"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.