Would there ever be an interest for callers to differentiate the what each download URL represents? I'm thinking of Maven for example, where one file could be the pom file, one could be a JAR file, one could be sources, etc. etc. I wonder whether we could return a list of object, and the object could contain not only a URL/Uri field, but also something like a package-manager-specific enum indicating the type of artifact the URL points to?
We might need to think carefully about how generics would play out for something like that though.
Would there ever be an interest for callers to differentiate the what each download URL represents? I'm thinking of Maven for example, where one file could be the pom file, one could be a JAR file, one could be sources, etc. etc. I wonder whether we could return a list of object, and the object could contain not only a URL/
Uri
field, but also something like a package-manager-specific enum indicating the type of artifact the URL points to?We might need to think carefully about how generics would play out for something like that though.
_Originally posted by @pmalmsten in https://github.com/microsoft/OSSGadget/pull/329#discussion_r851434783_