Skip to main content
Validate App Store Schema

Schema Structure

  • type (string) - enum: appStore (required)
  • data (array of object) (required) - List of app stores URL and type

Components Used

This category uses the following components:

Schema

{
  "definitions": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "App Store Schema",
  "description": "Validate App Store Schema",
  "examples": [],
  "required": [
    "type",
    "data"
  ],
  "additionalProperties": false,
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "appStore"
      ]
    },
    "data": {
      "type": "array",
      "title": "Data containing URL for each store",
      "description": "List of app stores URL and type",
      "items": {
        "type": "object",
        "required": [
          "type",
          "url"
        ],
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "playStore",
              "appleStore"
            ]
          },
          "url": {
            "type": "string",
            "description": "Link to the app store",
            "minLength": 5,
            "format": "uri",
            "pattern": "^(http://www\\.|https://www\\.|http://|https://)?[a-z0-9]+([\\-.][a-z0-9]+)*\\.[a-z]{2,10}(:[0-9]{1,5})?(/.*)?$"
          },
          "tracking": {
            "$ref": "components/event_tracking.json"
          }
        }
      }
    }
  }
}