@Hervé:

The NuGet `deprecation` object exists in the NuGet package metadata.

It is described here: 
https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource#package-deprecation

Example snippet from the docs:

{
      "@id": 
"https://api.nuget.org/v3/registration3/nuget.protocol.v3.example/1.0.729-unstable.json";,
      "@type": "Package",
      "commitId": "e0b9ca79-75b5-414f-9e3e-de9534b5cfd1",
      "commitTimeStamp": "2017-10-26T14:12:19.3439088Z",
      "catalogEntry": {
        "@id": 
"https://api.nuget.org/v3/catalog0/data/2015.02.01.18.22.05/nuget.protocol.v3.example.1.0.729-unstable.json";,
        "@type": "PackageDetails",
        "authors": "NuGet.org Team",
        "deprecation": {
          "reasons": [
            "CriticalBugs"
          ],
          "message": "This package is unstable and broken!",
          "alternatePackage": {
            "id": "Newtonsoft.JSON",
            "range": "12.0.2"
          }
        },
        "iconUrl": 
"https://www.nuget.org/Content/gallery/img/default-package-icon.svg";,
        "id": "NuGet.Protocol.V3.Example",
        "licenseUrl": "http://www.opensource.org/licenses/ms-pl";,
        "listed": false,
        "packageContent": 
"https://api.nuget.org/v3-flatcontainer/nuget.protocol.v3.example/1.0.729-unstable/nuget.protocol.v3.example.1.0.729-unstable.nupkg";,
        "projectUrl": "https://github.com/NuGet/NuGetGallery";,
        "published": "1900-01-01T00:00:00+00:00",
        "requireLicenseAcceptance": true,
        "summary": "This package is an example for the V3 protocol.",
        "title": "NuGet V3 Protocol Example",
        "version": "1.0.729-Unstable"
      },
      "packageContent": 
"https://api.nuget.org/v3-flatcontainer/nuget.protocol.v3.example/1.0.729-unstable/nuget.protocol.v3.example.1.0.729-unstable.nupkg";,
      "registration": 
"https://api.nuget.org/v3/registration3/nuget.protocol.v3.example/index.json";
    }
...
}

NuGet has chosen to pack some extra fields into their `deprecation` object, 
rather than make it a simple boolean flag. I'm not sure all of them are really 
necessary, or whether the deprecation object is the right place for some of 
them. But that's all up for discussion of course.

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to