Skip to content

Search results in json format from dotnet package search should not include fields for which no values are provided #13166

Closed
NuGet/NuGet.Client
#5640

Description

Image for: Description

NuGet Product Used

dotnet.exe

Product Version

.NET SDK 9.0.100-alpha.1.24062.11

Worked before?

No response

Impact

It bothers me. A fix would be nice

Repro Steps & Context

.\dotnet.exe package search <search_term> --format json
Note: this repros with or without --exact-match

Expected:
The feedback is that fields that do not have values available in the package source, such as owners or total downloads, should not be included in the json output.

Actual:
Fields that do not have values available in the package source, such as owners or total downloads, are provided in the json output with the value null.

Feedback provided here: #13158 (comment)

Verbose Logs

No response

Metadata

Image for: Metadata

Metadata

Image for: Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Image for: Issue actions