Closed alenpaulvarghese closed 2 years ago
The API doesn't return the license on list queries, only when retrieving a crate directly.
The Crate::license
field is actually always empty. I believe this might be a relic of previous API responses.
To get the license, you have to retrieve the crate via Client::get_crate
and then inspect the Version::license
field of the newest version.
The License field of the struct Crate is always None
output
None
expected output
MIT OR Apache-2.0