{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nuget/json-schema/nuget-registration-leaf-document-schema.json",
  "title": "RegistrationLeafDocument",
  "description": "A standalone registration leaf document for a specific package version.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nuget-registration-api-openapi.yml#/components/schemas/RegistrationLeafDocument",
  "type": "object",
  "required": [
    "@id"
  ],
  "properties": {
    "@id": {
      "type": "string",
      "format": "uri",
      "description": "The URL to the registration leaf."
    },
    "catalogEntry": {
      "type": "string",
      "format": "uri",
      "description": "The URL to the catalog entry that produced this leaf."
    },
    "listed": {
      "type": "boolean",
      "description": "Whether the package is listed. Considered listed if absent."
    },
    "packageContent": {
      "type": "string",
      "format": "uri",
      "description": "The URL to the package content (.nupkg)."
    },
    "published": {
      "type": "string",
      "format": "date-time",
      "description": "An ISO 8601 timestamp of when the package was published. Set to year 1900 on nuget.org when the package is unlisted."
    },
    "registration": {
      "type": "string",
      "format": "uri",
      "description": "The URL to the registration index."
    }
  }
}