{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://atlas.local/schemas/common.schema.json",
  "title": "Shared definitions",
  "$defs": {
    "status": {
      "enum": [
        "DOCUMENTED",
        "LIVE_DISCOVERED",
        "LIVE_VERIFIED",
        "BETA",
        "PREVIEW",
        "LEGACY",
        "DEPRECATED",
        "RETIRED",
        "ACCOUNT_RESTRICTED",
        "UNVERIFIED",
        "FAILED_VERIFICATION",
        "DOCUMENTATION_INCOMPLETE",
        "GA"
      ]
    },
    "tristate": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array"
        },
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "source": {
      "type": "object",
      "required": [
        "url"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "retrieved_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "verification": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "method": {
          "type": [
            "string",
            "null"
          ]
        },
        "verified_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "result": {
          "type": [
            "string",
            "null"
          ],
          "description": "success | failure | restricted | not_tested | partial | not_run | n/a"
        },
        "http_status": {
          "type": [
            "integer",
            "array",
            "string",
            "null"
          ]
        },
        "request_note": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}
