{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://standardsdrift.com/data/schema/drafts.schema.json",
 "title": "Standards Drift: CRA and AI Act standards (drafts.json)",
 "type": "object",
 "required": [
  "standards"
 ],
 "properties": {
  "_comment": {
   "type": "string"
  },
  "record_as_of": {
   "type": "string"
  },
  "standards": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "reference",
     "status",
     "regime"
    ],
    "properties": {
     "reference": {
      "type": "string",
      "description": "Reference of the standard, or the work item code where no reference is assigned yet."
     },
     "title": {
      "type": [
       "string",
       "null"
      ],
      "description": "Title in the work programme."
     },
     "status": {
      "enum": [
       "ceasing",
       "cited",
       "draft",
       "ended",
       "pending",
       "published",
       "restricted",
       "unlabelled"
      ],
      "description": "draft, published or cited (see status values)."
     },
     "status_label": {
      "type": "string",
      "description": "The status in words, as shown on the site."
     },
     "regime": {
      "type": "string",
      "description": "cra or ai_act."
     },
     "standardisation_request": {
      "type": [
       "string",
       "null"
      ],
      "description": "The Commission request the standard is written under."
     },
     "body": {
      "type": [
       "string",
       "null"
      ],
      "description": "Standards body or committee."
     },
     "committee": {
      "type": [
       "string",
       "null"
      ],
      "description": "Working group, where the source gives one."
     },
     "work_item": {
      "type": [
       "string",
       "null"
      ],
      "description": "The standards body's work item code."
     },
     "stage": {
      "type": "string",
      "description": "drafting, enquiry, comments, vote, approval, ratified or published."
     },
     "stage_label": {
      "type": [
       "string",
       "null"
      ],
      "description": "The source's own name for the current status."
     },
     "stage_date": {
      "type": [
       "string",
       "null"
      ],
      "description": "Date of that status in the source, YYYY-MM-DD."
     },
     "stage_text": {
      "type": [
       "string",
       "null"
      ],
      "description": "The stage in words, with the public enquiry window where known."
     },
     "enquiry_start": {
      "type": [
       "string",
       "null"
      ],
      "description": "ETSI only: date the public enquiry opened, from the work item's schedule."
     },
     "enquiry_close": {
      "type": [
       "string",
       "null"
      ],
      "description": "ETSI only: date the public enquiry closed, or its planned closing date while open."
     },
     "enquiry_closed": {
      "type": "boolean",
      "description": "ETSI only: true once the schedule records the enquiry as closed."
     },
     "stage_basis": {
      "type": [
       "string",
       "null"
      ],
      "description": "How the stage was read: from the schedule's milestones, or from the status text."
     },
     "next_stage_label": {
      "type": [
       "string",
       "null"
      ],
      "description": "Next milestone named by the source."
     },
     "next_stage_date": {
      "type": [
       "string",
       "null"
      ],
      "description": "Date of that milestone in the source, YYYY-MM-DD; planned, not a forecast of ours."
     },
     "first_in_oj": {
      "type": [
       "string",
       "null"
      ],
      "description": "Date of the Official Journal citation, YYYY-MM-DD, once one exists."
     },
     "oj_citation": {
      "type": [
       "object",
       "null"
      ],
      "description": "The implementing decision citing it: decision number, adoption and OJ dates, OJ reference, URL, how it was verified."
     },
     "latest_end_of_legal_effect": {
      "type": [
       "string",
       "null"
      ],
      "description": "End of legal effect, once a decision sets one."
     },
     "record_as_of": {
      "type": "string",
      "description": "Day of the build, YYYY-MM-DD."
     },
     "source_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The page the stage was read from."
     },
     "source_name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name of that source."
     },
     "url": {
      "type": "string",
      "description": "The standard's page on this site."
     }
    }
   }
  }
 }
}