Skip to content

ASC apply round 4 — recurrenceDuration needs ISO 8601 'with time components' (P1D → PT24H) #24

Closed

Description

@wei18

Status

Round 4 of apply. Single error remains:

```
recurrenceDuration: 'P1D' is not a valid value for the attribute 'recurrenceDuration'.
Expected an ISO 8601 duration with time components.
```

`P1D` is ISO 8601 date-only (1 day). Apple requires the T-prefixed time form. Equivalent: `PT24H` (24 hours).

All other fields from rounds 1-3 (`defaultFormatter`, `recurrenceRule`, `recurrenceStartDate`, `scoreSortType`, `submissionType`) are accepted. No `visibility` complaint — server-defaults to `SHOW_FOR_ALL`.

Fix

  1. `Packages/SudokuKit/Sources/ASCRegister/Config.swift`: `LeaderboardConfig.recurrenceDuration` value `"P1D"` → `"PT24H"`.
  2. `Packages/SudokuKit/Tests/ASCRegisterTests/ConfigConsistencyTests.swift`: update assertion to match `"PT24H"`.

Total: ~2 line changes.

Discovery

Via `swift run ASCRegister apply` 2026-05-20 (round 4). Previously we used `inspect` against the user's dummy `test.bootstrap.delete` to discover other attribute shapes; that dummy is non-recurring so it didn't reveal this format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions