{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "delete_image_command",
  "description": "Command schema to delete a single image by either ID or the original source location. At least one of them must be defined - the image ID takes precedence.",
  "additionalProperties": false,
  "properties": {
    "image_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "original_source_location": {
      "type": "string",
      "minLength": 1,
      "pattern": "^$|.*\\S.*",
      "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
    }
  }
}