{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://mfeflow.github.io/mfeflow/schema/registry-entry.json",
  "title": "registry entry",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "version": {
      "type": "string",
      "pattern": "^[0-9A-Za-z.+-]+$"
    },
    "manifestUrl": {
      "type": "string",
      "format": "uri",
      "pattern": "^https?://"
    },
    "remoteEntry": {
      "type": "string",
      "format": "uri",
      "pattern": "^https?://"
    },
    "type": {
      "type": "string",
      "enum": [
        "var",
        "module",
        "esm",
        "assign",
        "assign-properties",
        "this",
        "window",
        "self",
        "global",
        "commonjs",
        "commonjs2",
        "commonjs-module",
        "commonjs-static",
        "amd",
        "amd-require",
        "umd",
        "umd2",
        "jsonp",
        "system"
      ]
    },
    "entryGlobalName": {
      "type": "string",
      "pattern": "^[A-Za-z_$][\\w$-]*$"
    },
    "exposes": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "pattern": "^\\.\\/[A-Za-z0-9_/-]+$"
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string",
          "format": "uri",
          "pattern": "^https?://"
        }
      }
    },
    "previous": {
      "type": "string",
      "pattern": "^[0-9A-Za-z.+-]+$"
    },
    "owner": {
      "type": "string"
    },
    "rollout": {
      "type": "object",
      "properties": {
        "candidate": {
          "type": "string",
          "pattern": "^[0-9A-Za-z.+-]+$"
        },
        "stable": {
          "type": "string",
          "pattern": "^[0-9A-Za-z.+-]+$"
        },
        "percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        }
      },
      "required": [
        "candidate",
        "stable",
        "percent"
      ]
    }
  },
  "required": [
    "version",
    "manifestUrl"
  ]
}
