{
  "$schema": "https://json-everything.net/meta/array-ext",
  "description": "A list of all versions",
  "properties": {
    "latest": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    },
    "omnifestVersion": {
      "type": "number"
    },
    "versions": {
      "items": {
        "properties": {
          "complianceLevel": {
            "minimum": 0,
            "type": "number"
          },
          "equivalentTo": {
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "minLength": 1,
            "type": "string"
          },
          "mojangVersion": {
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "phase": {
            "enum": [
              "pre-classic",
              "classic",
              "indev",
              "infdev",
              "alpha",
              "beta",
              "post-1.0",
              "oddballs"
            ],
            "type": "string"
          },
          "releaseTime": {
            "format": "date-time",
            "type": "string"
          },
          "sha1": {
            "pattern": "^[0-9a-f]{40}$",
            "type": "string"
          },
          "time": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "release",
              "snapshot",
              "april-fools",
              "special"
            ],
            "type": "string"
          },
          "url": {
            "format": "uri-reference",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "url",
          "time",
          "releaseTime",
          "sha1",
          "complianceLevel",
          "mojangVersion",
          "equivalentTo",
          "phase"
        ]
      },
      "type": "array",
      "uniqueItems": true,
      "uniqueKeys": [
        "/id"
      ]
    }
  },
  "required": [
    "latest",
    "versions",
    "omnifestVersion"
  ],
  "type": "object"
}
