Add file `type`as an optional parameter for generic packages
Release notes
When you first heard GitLab launched support for generic packages, you were quite excited. But then after using the feature, you realized you couldn't specify file type when using the API. This made it difficult to filter on that information when trying to find/validate a file.
Moving forward, you will be able to specify file type when using the Packages API, so that you can more easily find and validate the packages you are looking for.
Problem to solve
If you use GitLab Packages to publish and install generic packages, you'd like to be able to specify the file type during upload, so you can find packages that match that type.
Dogfooding example
As part of Fuzz testing, we'd like to be able to upload corpus
files using the Packages feature, but we need the ability to hide those files from the Packages UI. Adding a type would give us that flexibility.
Proposal
Add file_type
as an optional field to the Packages API, so that when publishing generic packages you can distinguish between different types of generic packages.