{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-changelog-response-schema.json",
  "title": "ChangelogResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repowise-dev-meta-api-openapi.yml#/components/schemas/ChangelogResponse",
  "properties": {
    "entries": {
      "items": {
        "$ref": "#/$defs/ChangelogEntryModel"
      },
      "type": "array",
      "title": "Entries"
    }
  },
  "type": "object",
  "required": [
    "entries"
  ],
  "$defs": {
    "ChangelogEntryModel": {
      "properties": {
        "version": {
          "type": "string",
          "title": "Version"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Label"
        },
        "summary": {
          "type": "string",
          "title": "Summary",
          "default": ""
        },
        "highlights": {
          "items": {
            "$ref": "#/$defs/ChangelogHighlightModel"
          },
          "type": "array",
          "title": "Highlights",
          "default": []
        },
        "stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReleaseStatsModel"
            },
            {
              "type": "null"
            }
          ]
        },
        "sections": {
          "items": {
            "$ref": "#/$defs/ChangelogSectionModel"
          },
          "type": "array",
          "title": "Sections"
        }
      },
      "type": "object",
      "required": [
        "version",
        "sections"
      ],
      "title": "ChangelogEntryModel"
    },
    "ChangelogHighlightModel": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "blurb": {
          "type": "string",
          "title": "Blurb"
        },
        "href": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Href"
        }
      },
      "type": "object",
      "required": [
        "id",
        "title",
        "blurb"
      ],
      "title": "ChangelogHighlightModel"
    },
    "ChangelogSectionModel": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "items": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Items"
        }
      },
      "type": "object",
      "required": [
        "name",
        "items"
      ],
      "title": "ChangelogSectionModel"
    },
    "ReleaseStatsModel": {
      "properties": {
        "since": {
          "type": "string",
          "title": "Since"
        },
        "days": {
          "type": "integer",
          "title": "Days"
        },
        "prs": {
          "type": "integer",
          "title": "Prs"
        },
        "contributors": {
          "type": "integer",
          "title": "Contributors"
        },
        "first_time_contributors": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "First Time Contributors"
        },
        "files_changed": {
          "type": "integer",
          "title": "Files Changed"
        },
        "lines_added": {
          "type": "integer",
          "title": "Lines Added"
        },
        "lines_removed": {
          "type": "integer",
          "title": "Lines Removed"
        },
        "types": {
          "$ref": "#/$defs/ReleaseTypeCountsModel"
        },
        "test_files_touched": {
          "type": "integer",
          "title": "Test Files Touched"
        },
        "test_files_new": {
          "type": "integer",
          "title": "Test Files New"
        },
        "issues_closed": {
          "type": "integer",
          "title": "Issues Closed"
        }
      },
      "type": "object",
      "required": [
        "since",
        "days",
        "prs",
        "contributors",
        "files_changed",
        "lines_added",
        "lines_removed",
        "types",
        "test_files_touched",
        "test_files_new",
        "issues_closed"
      ],
      "title": "ReleaseStatsModel",
      "description": "A release's \"By the numbers\", from ``scripts/release_stats.py``."
    },
    "ReleaseTypeCountsModel": {
      "properties": {
        "fixes": {
          "type": "integer",
          "title": "Fixes",
          "default": 0
        },
        "features": {
          "type": "integer",
          "title": "Features",
          "default": 0
        },
        "perf": {
          "type": "integer",
          "title": "Perf",
          "default": 0
        },
        "refactors": {
          "type": "integer",
          "title": "Refactors",
          "default": 0
        },
        "docs": {
          "type": "integer",
          "title": "Docs",
          "default": 0
        }
      },
      "type": "object",
      "title": "ReleaseTypeCountsModel"
    }
  }
}