{
    "$schema": "http://json-schema.org/schema#",
    "type": "object",
    "properties": {
        "type": {
            "type": "string",
            "description": "The service type (should always be 'aiservices')",
            "pattern": "aiservices",
            "errorMessage": "Must equal 'aiservices'"
        },
        "ai_services": {
            "type": "array",
            "items": {
                "type": "string",
                "pattern": "^rekognition|polly|comprehend|translate|transcribe$"
            },
            "errorMessage": "Must be a list of strings, containing 'rekognition', 'comprehend', 'translate', 'transcribe', or 'polly'"
        }
    },
    "required": [
        "type",
        "ai_services"
    ],
    "additionalProperties": false,
    "errorMessage": {
        "additionalProperties": "Invalid/unknown property specified",
        "required": {
            "type": "The top-level 'type' field is required",
            "ai_servies": "The 'ai_services' field is required"
        }
    }
}