Mark Comment.id required #1

Merged
stephen merged 1 commit from comment-id-required into main 2026-05-21 05:25:26 +00:00
Owner

Adds Comment to policy.yaml's requiredOverrides so the generated Swift type decodes id as non-Optional. That lets a comment satisfy Identifiable directly in a SwiftUI ForEach without a computed fallback, the same treatment the other list-rendered schemas already get.

openapi.yaml is regenerated from openapi.v1.yaml + the updated overrides via make patch.

Adds `Comment` to `policy.yaml`'s `requiredOverrides` so the generated Swift type decodes `id` as non-Optional. That lets a comment satisfy `Identifiable` directly in a SwiftUI `ForEach` without a computed fallback, the same treatment the other list-rendered schemas already get. `openapi.yaml` is regenerated from `openapi.v1.yaml` + the updated overrides via `make patch`.
Mark Comment.id required
All checks were successful
CI / Contract drift (pull_request) Successful in 4s
0803dbf9da
Adds Comment to policy.yaml's requiredOverrides so the generated Swift
type has a non-Optional id, letting a comment satisfy Identifiable
directly in a SwiftUI ForEach. Regenerates openapi.yaml from the patch.
stephen referenced this pull request from a commit 2026-05-21 05:25:27 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/forgejo-api-contract!1
No description provided.