{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://evidence-press.pages.dev/api/schema.json",
  "title": "Evidence Press papers index",
  "type": "object",
  "required": [
    "schemaVersion",
    "count",
    "papers"
  ],
  "properties": {
    "schemaVersion": {
      "type": "string"
    },
    "site": {
      "type": "string"
    },
    "baseUrl": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "schema": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "papers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/paper"
      }
    }
  },
  "$defs": {
    "paper": {
      "type": "object",
      "required": [
        "slug",
        "title",
        "url",
        "doi",
        "datePublished",
        "version",
        "authors",
        "license",
        "status",
        "verification",
        "keywords"
      ],
      "properties": {
        "schemaVersion": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "shortTitle": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "oneLine": {
          "type": "string"
        },
        "abstract": {
          "type": "string"
        },
        "datePublished": {
          "type": "string",
          "format": "date"
        },
        "dateModified": {
          "type": "string",
          "format": "date"
        },
        "version": {
          "type": "string"
        },
        "doi": {
          "type": "string"
        },
        "doiUrl": {
          "type": "string",
          "format": "uri"
        },
        "conceptDoi": {
          "type": [
            "string",
            "null"
          ]
        },
        "pdfUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Direct link to the manuscript PDF"
        },
        "altPdfUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "zenodoUrl": {
          "type": "string",
          "format": "uri"
        },
        "repoUrl": {
          "type": "string",
          "format": "uri"
        },
        "releaseUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "markdownUrl": {
          "type": "string",
          "format": "uri"
        },
        "bibtexUrl": {
          "type": "string",
          "format": "uri"
        },
        "audioUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Narrated plain-language briefing (MP3)"
        },
        "imageUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "coverArtUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "media": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "audio",
                  "video"
                ]
              },
              "url": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              }
            }
          }
        },
        "authors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "license": {
          "const": "CC0-1.0"
        },
        "status": {
          "const": "unrefereed-candidate"
        },
        "verification": {
          "type": "object",
          "required": [
            "peerReviewed",
            "independentlyReproduced",
            "formallyVerified",
            "internallyReplayed"
          ],
          "properties": {
            "peerReviewed": {
              "type": "boolean"
            },
            "independentlyReproduced": {
              "type": "boolean"
            },
            "formallyVerified": {
              "type": "boolean"
            },
            "internallyReplayed": {
              "type": "boolean"
            },
            "detail": {
              "type": "string"
            }
          }
        },
        "provenance": {
          "type": "object",
          "properties": {
            "aiGenerated": {
              "type": "boolean"
            },
            "generatedBy": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "humanRole": {
              "type": "string"
            },
            "disclosure": {
              "type": "string"
            }
          }
        },
        "problem": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          }
        },
        "keywords": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "keyResults": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "evidencePackage": {
          "type": "string"
        },
        "openProblems": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Concrete follow-up research problems, well-posed enough to start on"
        },
        "relatedWorks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "citation": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}