{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Changelog",
  "description": "Versioned changelog rows",
  "type": "object",
  "properties": {
    "heading": {
      "type": "string",
      "title": "Heading",
      "description": "Optional section heading",
      "x-editor": "text"
    },
    "entries": {
      "type": "array",
      "title": "Entries",
      "description": "Changelog entries, newest first",
      "default": [],
      "x-editor": "collection",
      "items": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "title": "Version",
            "description": "Version tag e.g. v1.2",
            "x-editor": "text"
          },
          "date": {
            "type": "string",
            "title": "Date",
            "description": "Release date",
            "x-editor": "text"
          },
          "title": {
            "type": "string",
            "title": "Title",
            "description": "Optional short title for the release",
            "x-editor": "text"
          },
          "note": {
            "type": "string",
            "title": "Note",
            "description": "What changed",
            "x-editor": "richtext"
          }
        },
        "required": ["version"]
      }
    }
  }
}
