Skip to main content
Conditions for redirecting the website.

Properties

This component has no additional properties beyond the base schema.

Used in Categories

This component is used in the following categories:

Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {},
  "title": "conditional urls",
  "type": "array",
  "additionalProperties": false,
  "description": "Conditions for redirecting the website.",
  "minItems": 1,
  "items": {
    "type": "object",
    "required": [
      "type",
      "data"
    ],
    "additionalProperties": false,
    "properties": {
      "type": {
        "type": "string",
        "enum": [
          "os",
          "device",
          "country",
          "language"
        ]
      },
      "data": {
        "type": "array",
        "description": "Contains data for condition types.",
        "minItems": 1,
        "maxItems": 50,
        "items": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string",
              "format": "uri",
              "title": "URL",
              "pattern": "(http://www\\.|https://www\\.|http://|https://)?[a-z0-9]+([\\-.][a-z0-9]+)*\\.[a-z]{2,10}(:[0-9]{1,5})?(/.*)?$",
              "description": "Used for redirecting user to the URL"
            }
          }
        }
      }
    }
  }
}