Exclude authors from valid metadata check when uploading symbol package
What does this MR do and why?
In !120100 (merged), we implemented a change that introduced two new required metadata properties, authors
and description
, for NuGet packages. As a result, we now enforce the presence of these properties in the uploaded metadata file before allowing the publishing of a new NuGet package.
However, this change overlooks a specific case concerning symbol packages (.snupkg). Symbol packages, as described in the Microsoft documentation on symbol package structure, do not include the authors
property in their metadata files. Therefore, the current implementation prevents the publishing of symbol packages due to the absence of the authors
metadata property.
To address this issue, we need to modify the implementation to allow the publishing of symbol packages without enforcing the presence of the authors
metadata property. This adjustment will ensure that symbol packages can be published successfully without any unnecessary validation errors.
Screenshots or screen recordings
How to set up and validate locally
- Follow the steps outlined in the Microsoft documentation on creating a symbol package to create a new symbol package.
- Attempt to push the symbol package to your GDK using the documentation on publishing symbol packages to a NuGet repository.
- Access your GDK user interface (UI) and navigate the project's Package Registry page.
- Locate the symbol package that was pushed in Step 2.
- The package should have been successfully published.
- Switch to the
master
branch and try to push the package again. You should find an error message displayed indicating the failure of publishing the symbol package, with the specific error message beingInvalid Package: failed metadata extraction
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #415045 (closed)