Fix PackageArtifactResponse missing sha256 and version fields
- Add sha256 field to list_package_artifacts response (artifact ID is SHA256) - Add version field to PackageArtifactResponse schema - Add version field to frontend PackageArtifact type - Update getArtifactVersion to prefer direct version field
This commit is contained in:
@@ -313,9 +313,9 @@ function PackagePage() {
|
||||
}
|
||||
};
|
||||
|
||||
// Helper to get version from artifact metadata
|
||||
// Helper to get version from artifact - prefer direct version field, fallback to metadata
|
||||
const getArtifactVersion = (a: PackageArtifact): string | null => {
|
||||
return (a.format_metadata?.version as string) || null;
|
||||
return a.version || (a.format_metadata?.version as string) || null;
|
||||
};
|
||||
|
||||
// Helper to get download ref - prefer version, fallback to artifact ID
|
||||
|
||||
Reference in New Issue
Block a user