{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "const": "https://themachinepress.com/schemas/discovery-v1.schema.json"
    },
    "schema_version": {
      "type": "string",
      "const": "1.0.0"
    },
    "service": {
      "type": "string",
      "const": "The Machine Press"
    },
    "canonical_origin": {
      "type": "string",
      "const": "https://themachinepress.com"
    },
    "description": {
      "$ref": "#/$defs/__schema0"
    },
    "provisional_well_known_uri": {
      "type": "boolean",
      "const": true
    },
    "latest": {
      "type": "object",
      "properties": {
        "edition_id": {
          "$ref": "#/$defs/__schema0"
        },
        "published_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "canonical_url": {
          "$ref": "#/$defs/__schema1"
        },
        "json_url": {
          "$ref": "#/$defs/__schema1"
        },
        "markdown_url": {
          "$ref": "#/$defs/__schema1"
        },
        "lead_summary": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "edition_id",
        "published_at",
        "canonical_url",
        "json_url",
        "markdown_url",
        "lead_summary"
      ],
      "additionalProperties": false
    },
    "endpoints": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema1"
      }
    },
    "schemas": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema1"
      }
    }
  },
  "required": [
    "$schema",
    "schema_version",
    "service",
    "canonical_origin",
    "description",
    "provisional_well_known_uri",
    "latest",
    "endpoints",
    "schemas"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "type": "string",
      "minLength": 1
    },
    "__schema1": {
      "type": "string",
      "format": "uri",
      "pattern": "^https:\\/\\/.*"
    }
  },
  "$id": "https://themachinepress.com/schemas/discovery-v1.schema.json",
  "title": "The Machine Press provisional discovery document"
}
