{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-version-response-schema.json",
  "title": "VersionResponse",
  "description": "Server version, PyPI freshness, and (optional) per-repo store status.",
  "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/VersionResponse",
  "properties": {
    "server_version": {
      "type": "string",
      "title": "Server Version"
    },
    "latest_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Latest Version"
    },
    "update_available": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Update Available"
    },
    "upgrade_command": {
      "type": "string",
      "title": "Upgrade Command"
    },
    "store_format_version": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Store Format Version"
    },
    "store_compatible": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Store Compatible"
    },
    "reindex_recommended": {
      "type": "boolean",
      "title": "Reindex Recommended",
      "default": false
    },
    "reindex_command": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reindex Command"
    },
    "highlights": {
      "items": {
        "$ref": "#/$defs/ChangelogHighlightModel"
      },
      "type": "array",
      "title": "Highlights",
      "default": []
    },
    "latest_highlights": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Latest Highlights",
      "default": []
    }
  },
  "type": "object",
  "required": [
    "server_version",
    "upgrade_command"
  ],
  "$defs": {
    "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"
    }
  }
}