{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/lists_item_redirect",
  "title": "lists_item_redirect",
  "description": "The definition of the redirect.",
  "properties": {
    "include_subdomains": {
      "default": false,
      "type": "boolean"
    },
    "preserve_path_suffix": {
      "default": false,
      "type": "boolean"
    },
    "preserve_query_string": {
      "default": false,
      "type": "boolean"
    },
    "source_url": {
      "example": "example.com/arch",
      "type": "string"
    },
    "status_code": {
      "default": 301,
      "enum": [
        301,
        302,
        307,
        308
      ],
      "type": "integer"
    },
    "subpath_matching": {
      "default": false,
      "type": "boolean"
    },
    "target_url": {
      "example": "https://archlinux.org/",
      "type": "string"
    }
  },
  "required": [
    "source_url",
    "target_url"
  ]
}