Skip to content

Inconsistent type of resolvedDependenciesGraph #94

Description

@mnonnenmacher

With the fix for #86 the type of the resolvedDependenciesGraph property is now inconsistent. Usually the property is an array, but if the dependency graph is empty it is an empty object {} instead of an empty array:

https://github.com/nexB/python-inspector/blob/0da2e84124fa10de7b2b005240b8de38c0095286/tests/data/setup/no-direct-dependencies-setup.py-expected.json#L84

This makes the deserialization unnecessarily complex.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions