{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/github/main/json-schema/github-package-version-schema.json", "title": "Package Version", "description": "A version of a software package", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/github-packages-api-openapi.yml#/components/schemas/package-version", "type": "object", "properties": { "id": { "description": "Unique identifier of the package version.", "type": "integer" }, "name": { "description": "The name of the package version.", "type": "string" }, "url": { "type": "string" }, "package_html_url": { "type": "string" }, "html_url": { "type": "string" }, "license": { "type": "string" }, "description": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "deleted_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "title": "Package Version Metadata", "properties": { "package_type": { "type": "string", "enum": [ "npm", "maven", "rubygems", "docker", "nuget", "container" ] }, "container": { "type": "object", "title": "Container Metadata", "properties": { "tags": { "type": "array", "items": { "type": "string" } } }, "required": [ "tags" ] }, "docker": { "type": "object", "title": "Docker Metadata", "properties": { "tag": { "type": "array", "items": { "type": "string" } } }, "required": [ "tags" ] } }, "required": [ "package_type" ] } }, "required": [ "id", "name", "url", "package_html_url", "created_at", "updated_at" ] }