{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://getcaute.com/card-format/1/note-front-matter.schema.json",
  "title": "notes/<slug>.md front matter",
  "description": "The properties block at the top of each note. Each value is written as JSON on its own line, which YAML reads too. A key with no value (null, or an empty list) is left out.",
  "$defs": {
    "datetime": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}[ T]\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?([+-]\\d{2}:\\d{2}|Z)$",
      "description": "A date and time with its offset (RFC 3339), written with a space between date and time: 2026-10-14 03:04:05.123456+00:00. Fractional seconds are left out when they are zero."
    },
    "uuid": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
    }
  },
  "type": "object",
  "required": [
    "id",
    "created",
    "updated",
    "space"
  ],
  "additionalProperties": false,
  "properties": {
    "id": {
      "$ref": "#/$defs/uuid"
    },
    "title": {
      "type": "string",
      "description": "Taken from the note's first line."
    },
    "created": {
      "$ref": "#/$defs/datetime"
    },
    "updated": {
      "$ref": "#/$defs/datetime"
    },
    "space": {
      "type": "string",
      "description": "The name of the space the note is in."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "description": "Tag paths, such as clients/acme."
    },
    "pinned": {
      "const": true
    },
    "annotates": {
      "$ref": "#/$defs/uuid",
      "description": "The card the note is written on, when that card is in the export."
    }
  }
}
