{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-batch-evaluate-geofences-response-schema.json",
  "title": "BatchEvaluateGeofencesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-location-service-positions-api-openapi.yml#/components/schemas/BatchEvaluateGeofencesResponse",
  "type": "object",
  "properties": {
    "Errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchEvaluateGeofencesError"
      },
      "description": "Contains error details for each device that failed to evaluate its position against the given geofence collection."
    }
  },
  "required": [
    "Errors"
  ],
  "$defs": {
    "BatchEvaluateGeofencesError": {
      "type": "object",
      "properties": {
        "DeviceId": {
          "type": "string",
          "description": "The device associated with the position evaluation error."
        },
        "SampleTime": {
          "type": "string",
          "format": "date-time",
          "description": "Specifies a timestamp for when the error occurred in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ"
        },
        "Error": {
          "$ref": "#/$defs/BatchItemError"
        }
      },
      "required": [
        "DeviceId",
        "SampleTime",
        "Error"
      ]
    },
    "BatchItemError": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The error code associated with the batch request error."
        },
        "Message": {
          "type": "string",
          "description": "A message with the reason for the batch request error."
        }
      }
    }
  }
}