Skip to content

Json doesnt have an id or version to read from #18

Open
@popcron

Description

@popcron

the NugetPackageDrawer class is trying to reference id and version from a json that didnt have it:

.Concat(obj.items).SelectMany(x => x.items)
.Select(x => new(x.catalogEntry.id, x.catalogEntry.version, ...)

my first change was to make it work requried to add a @id field to the catalog page class and an upper field (for version), the items array was left unused and the select becomes:

.Concat(obj.items).
.Select(x => new(x.@id, x.upper, ...)

and here is the json that I would normally get for Microsoft.Net.Compilers.
however, this wont show all of the versions for open sesame because the json for those actually matches, so a better fix for me locally is to init the items variables for catalog root and page to a new blank array s o that linq could keep going.

public CatalogPage[] items = { };
public Package[] items = { };

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions