gitea/modules/packages
Akhan Zhakiyanov 87362b4dc1
fix: add author.name field to Swift Package Registry API response (#35410)
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.
2025-09-07 18:24:25 +00: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 Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
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 OCI manifest parser (#34797) 2025-06-21 00:27:35 +08: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 Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
maven Fix maven pom inheritance (#32943) 2024-12-25 04:28:37 +00:00
npm Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
nuget Improve NuGet API Parity (#21291) (#34940) 2025-07-07 10:43:58 +00:00
pub Enable gocritic `equalFold` and fix issues (#34952) 2025-07-06 16:53:34 +00:00
pypi Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
rpm Use new RPM constants (#28931) 2024-01-25 21:40:24 +00:00
rubygems Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
swift fix: add author.name field to Swift Package Registry API response (#35410) 2025-09-07 18:24:25 +00:00
vagrant Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
content_store.go Redirect to a presigned URL of HEAD for HEAD requests (#35088) 2025-07-16 11:22:45 +00:00
hashed_buffer.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
hashed_buffer_test.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
multi_hasher.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
multi_hasher_test.go Replace fmt.Sprintf with hex.EncodeToString (#21960) 2022-11-28 11:19:18 +00:00