gitea/modules/packages
Giteabot 89c99a4dcb
fix: add author.name field to Swift Package Registry API response (#35410) (#35431)
Backport #35410 by ahanoff

Fixes #35159

Swift Package Manager expects an 'author.name' field in package
metadata, but Gitea was only providing schema.org format fields
(givenName, middleName, familyName). This caused SPM to fail with
keyNotFound error when fetching package metadata.

Changes:
- Add 'name' field to Person struct (inherited from
https://schema.org/Thing)
- Populate 'name' field in API response using existing String() method
- Maintains backward compatibility with existing schema.org fields
- Provides both formats for maximum compatibility

The fix ensures Swift Package Manager can successfully resolve packages
while preserving full schema.org compliance.

Co-authored-by: Akhan Zhakiyanov <ahanoff@gmail.com>
2025-09-08 03:37:53 +08:00
..
alpine Integrate alpine noarch packages into other architectures index (#29137) 2024-02-25 15:10:55 +00:00
arch Relax the version checking for Arch packages (#32908) 2024-12-19 09:41:23 +00:00
cargo cargo registry - respect renamed dependencies (#32430) 2024-11-12 02:57:30 +00:00
chef
composer Add bin to Composer Metadata (#32099) 2024-09-21 22:42:17 +00:00
conan Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
conda Refactor error system (#33771) 2025-03-03 05:36:10 +00:00
container Fix "oras" OCI client compatibility (#34666) (#34671) 2025-06-09 15:20:34 -04:00
cran Enable unparam linter (#31277) 2024-06-11 18:47:45 +00:00
debian Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
goproxy Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
helm
maven Fix maven pom inheritance (#32943) 2024-12-25 04:28:37 +00:00
npm Refactor package (routes and error handling, npm peer dependency) (#33111) 2025-01-06 22:45:20 +08:00
nuget Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
pub Use docs.gitea.com instead of docs.gitea.io (#26739) 2023-08-27 11:59:12 +00:00
pypi
rpm Use new RPM constants (#28931) 2024-01-25 21:40:24 +00:00
rubygems Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
swift fix: add author.name field to Swift Package Registry API response (#35410) (#35431) 2025-09-08 03:37:53 +08:00
vagrant
content_store.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-10-31 15:28:25 +00:00
hashed_buffer_test.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
hashed_buffer.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
multi_hasher_test.go
multi_hasher.go