Skip to content

Regenerate the SDK: optional scheduledAt on publish, price drop and republish - #1

Merged
nathanfallet merged 2 commits into
mainfrom
feature/scheduled-at-regen
Oct 28, 2026
Merged

nathanfallet merged 2 commits into
mainfrom
feature/scheduled-at-regen

Conversation

@nathanfallet

@nathanfallet nathanfallet commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

What

Regenerates the swift SDK from the OpenAPI document served by production (https://api.controlresell.com/api/public/openapi.json, sha256 06a7c92e23df7c44f8898a2b18abec43aa5c14b8f12ea10e1ce65a94a14a0fb4, written to .spec-sha256). The document now has an optional scheduledAt (ISO 8601, at most 30 days ahead) on POST /items/{id}/publish, /price-drop and /republish (backend#1664, in production since 2.140.0; domain#1828, API-015).

  • Generator: swift-openapi-generator 1.14.3, run with scripts/generate.sh (the committed generated code is its only change, plus the 202 receipt wording).
  • Hand-written layer: unchanged. A test sends scheduledAt on the three calls and reads it back from the receipt; the README shows it.
  • No major bump: the change is additive (1.x is the API version, API-018). No version, tag or release change.

Validation

  • swift test: 24 tests passed, run locally on this head.
  • GitHub Actions green on the head commit (see the checks of this PR).
  • code-review run on the PR: no blocker; the points raised (README example on a fresh item, hard-coded date, route assertions) were fixed or are non-blocking test-depth remarks.

Domaine

API-015 (scheduledAt on the three routes), API-018 (generated from the production specification, .spec-sha256, regeneration by PR), API-020 (hand-written layer untouched), ADR-002 and ADR-005 (generator).

Merge and publication

Merge: Nathan wrote "oui" on 28/10/2026, in the orchestrator session, for the merge of the regeneration of ALL the SDKs. This repository is not among the six of ENG-058 point 6, so that written "oui" is the authority; I merge once code-review has no blocker and the CI is green.
Publication: none. No release, no tag, no registry push (API-018): the "oui" for publishing stays with Nathan.

🤖 Generated with Claude Code

nathanfallet and others added 2 commits October 28, 2026 17:05
…epublish

Regenerated from the production OpenAPI document (sha256 06a7c92e...), which now carries
an optional scheduledAt on POST /items/{id}/publish, /price-drop and /republish
(backend#1664, domain#1828, API-015). Adds a test per SDK that sends scheduledAt on the
three calls, and the README shows it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A just-created item cannot be republished, so the README example now schedules the
publication itself. PHP test also checks the route, method and date format.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nathanfallet
nathanfallet marked this pull request as ready for review October 28, 2026 16:13
@nathanfallet
nathanfallet merged commit 1fc0391 into main Oct 28, 2026
2 checks passed
@nathanfallet
nathanfallet deleted the feature/scheduled-at-regen branch October 28, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant