NuGet · Schema

PackageDetailsLeaf

A catalog leaf representing a snapshot of package metadata. Produced when a package is pushed, relisted, unlisted, deprecated, undeprecated, reflowed, or has its vulnerability status updated.

Package Management.NETPackagesDependenciesSoftware DistributionRegistry

Properties

Name Type Description
@type object The type(s) of the catalog item, including PackageDetails.
catalog:commitId string A commit ID associated with this catalog item.
catalog:commitTimeStamp string The commit timestamp of this catalog item.
id string The package ID.
version string The full version string after normalization.
published string The time when the package was last listed. Set to year 1900 on nuget.org when unlisted.
created string A timestamp of when the package was first created on the source.
authors string The authors of the package.
description string The package description.
dependencyGroups array The dependencies grouped by target framework.
deprecation object
iconUrl string The URL to the package icon.
isPrerelease boolean Whether the package version is a prerelease.
language string The language of the package.
licenseUrl string The URL to the package license.
listed boolean Whether the package is listed.
minClientVersion string The minimum NuGet client version required.
packageContent string The URL to the .nupkg file.
packageHash string The hash of the package encoded using standard base 64.
packageHashAlgorithm string The hashing algorithm used. Typically SHA512 on nuget.org.
packageSize integer The size of the package .nupkg in bytes.
packageTypes array The package types specified by the author.
projectUrl string The URL to the project page.
releaseNotes string Release notes for this package version.
requireLicenseAgreement boolean Whether the package requires license acceptance.
summary string A summary of the package.
tags array Tags associated with the package.
title string The title of the package.
verbatimVersion string The version string as originally found in the .nuspec.
vulnerabilities array Security vulnerabilities associated with this version.
View JSON Schema on GitHub

JSON Schema

nuget-packagedetailsleaf-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PackageDetailsLeaf",
  "title": "PackageDetailsLeaf",
  "type": "object",
  "description": "A catalog leaf representing a snapshot of package metadata. Produced when a package is pushed, relisted, unlisted, deprecated, undeprecated, reflowed, or has its vulnerability status updated.",
  "required": [
    "@type",
    "catalog:commitId",
    "catalog:commitTimeStamp",
    "id",
    "published",
    "version",
    "packageHash",
    "packageHashAlgorithm",
    "packageSize"
  ],
  "properties": {
    "@type": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ],
      "description": "The type(s) of the catalog item, including PackageDetails."
    },
    "catalog:commitId": {
      "type": "string",
      "description": "A commit ID associated with this catalog item."
    },
    "catalog:commitTimeStamp": {
      "type": "string",
      "format": "date-time",
      "description": "The commit timestamp of this catalog item."
    },
    "id": {
      "type": "string",
      "description": "The package ID."
    },
    "version": {
      "type": "string",
      "description": "The full version string after normalization."
    },
    "published": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the package was last listed. Set to year 1900 on nuget.org when unlisted."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp of when the package was first created on the source."
    },
    "authors": {
      "type": "string",
      "description": "The authors of the package."
    },
    "description": {
      "type": "string",
      "description": "The package description."
    },
    "dependencyGroups": {
      "type": "array",
      "description": "The dependencies grouped by target framework.",
      "items": {
        "$ref": "#/components/schemas/DependencyGroup"
      }
    },
    "deprecation": {
      "$ref": "#/components/schemas/Deprecation"
    },
    "iconUrl": {
      "type": "string",
      "format": "uri",
      "description": "The URL to the package icon."
    },
    "isPrerelease": {
      "type": "boolean",
      "description": "Whether the package version is a prerelease."
    },
    "language": {
      "type": "string",
      "description": "The language of the package."
    },
    "licenseUrl": {
      "type": "string",
      "format": "uri",
      "description": "The URL to the package license."
    },
    "listed": {
      "type": "boolean",
      "description": "Whether the package is listed."
    },
    "minClientVersion": {
      "type": "string",
      "description": "The minimum NuGet client version required."
    },
    "packageContent": {
      "type": "string",
      "format": "uri",
      "description": "The URL to the .nupkg file."
    },
    "packageHash": {
      "type": "string",
      "description": "The hash of the package encoded using standard base 64."
    },
    "packageHashAlgorithm": {
      "type": "string",
      "description": "The hashing algorithm used. Typically SHA512 on nuget.org."
    },
    "packageSize": {
      "type": "integer",
      "description": "The size of the package .nupkg in bytes."
    },
    "packageTypes": {
      "type": "array",
      "description": "The package types specified by the author.",
      "items": {
        "$ref": "#/components/schemas/CatalogPackageType"
      }
    },
    "projectUrl": {
      "type": "string",
      "format": "uri",
      "description": "The URL to the project page."
    },
    "releaseNotes": {
      "type": "string",
      "description": "Release notes for this package version."
    },
    "requireLicenseAgreement": {
      "type": "boolean",
      "description": "Whether the package requires license acceptance."
    },
    "summary": {
      "type": "string",
      "description": "A summary of the package."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tags associated with the package."
    },
    "title": {
      "type": "string",
      "description": "The title of the package."
    },
    "verbatimVersion": {
      "type": "string",
      "description": "The version string as originally found in the .nuspec."
    },
    "vulnerabilities": {
      "type": "array",
      "description": "Security vulnerabilities associated with this version.",
      "items": {
        "$ref": "#/components/schemas/Vulnerability"
      }
    }
  }
}