{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "radical-rick-record.schema.json",
  "title": "Radical Rick Collection Record",
  "type": "object",
  "required": [
    "record_id",
    "title",
    "volume",
    "issue",
    "reading_order",
    "record_type",
    "accession_status",
    "source_image",
    "record_path",
    "source_page"
  ],
  "properties": {
    "record_id": {
      "type": "string",
      "minLength": 1
    },
    "artifact_id": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^26\\.\\d{4}$"
    },
    "legacy_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "source_title": {
      "type": "string"
    },
    "volume": {
      "type": "integer",
      "const": 1
    },
    "issue": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5
    },
    "reading_order": {
      "type": "integer",
      "minimum": 1
    },
    "record_type": {
      "type": "string"
    },
    "accession_status": {
      "enum": [
        "accessioned",
        "pending",
        "campaign"
      ]
    },
    "source_image": {
      "type": "string"
    },
    "record_path": {
      "type": "string"
    },
    "source_page": {
      "type": "string",
      "format": "uri"
    },
    "related_records": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": true
}
