ecosyste-ms / packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.
https://packages.ecosyste.ms
GNU Affero General Public License v3.0
25 stars 4 forks source link

docs: Add `PackageWithRegistry` to OpenAPI spec #643

Closed jamietanna closed 7 months ago

jamietanna commented 7 months ago

As noted in #642, calling the lookupPackage returns a registry key, which doesn't appear to be currently documented.

Closes #642.

andrew commented 7 months ago

Ah I didn't know you could do allOf, we could use that for some of the other schemas as well like VersionWithDependencies and VersionWithPackage.

jamietanna commented 7 months ago

I'm largely only using it because I know the OpenAPI code generator I'm using (that I happen to co-maintain) supports it, it's not always well supported across different tooling