{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cppps.com/schema/preprint-submission.schema.json",
  "title": "CPPPS Preprint Submission Package",
  "type": "object",
  "required": [
    "id",
    "title",
    "subject",
    "abstract",
    "authors",
    "corresponding",
    "url",
    "version",
    "createdAt",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Client-generated submission id, e.g. cppps-submission-178..."
    },
    "title": {
      "type": "string",
      "minLength": 2
    },
    "title_en": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "keywords": {
      "type": "string",
      "description": "Semicolon-separated keywords in the first public version."
    },
    "abstract": {
      "type": "string",
      "minLength": 20
    },
    "authors": {
      "type": "string"
    },
    "corresponding": {
      "type": "string"
    },
    "affiliations": {
      "type": "string"
    },
    "orcid": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "version": {
      "type": "string"
    },
    "doi": {
      "type": "string"
    },
    "pid": {
      "type": "string",
      "description": "CSTR / arXiv ID / ChinaXiv ID / other source identifier."
    },
    "version_note": {
      "type": "string"
    },
    "externalOnly": {
      "type": "boolean"
    },
    "status": {
      "enum": [
        "Submitted",
        "Screening",
        "Revision Needed",
        "Posted",
        "Rejected",
        "Withdrawn"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}