Skip to content

chore: sync OpenAPI spec from flashduty-docs + regenerate - #46

Merged
ysyneu merged 1 commit into
mainfrom
chore/sync-openapi-spec
Jul 28, 2026
Merged

chore: sync OpenAPI spec from flashduty-docs + regenerate#46
ysyneu merged 1 commit into
mainfrom
chore/sync-openapi-spec

Conversation

@ysyneu

@ysyneu ysyneu commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • openapi/openapi.{en,zh}.json refreshed from flashduty-docs main, carrying two description-only corrections:
    • Automation rule create: the timezone fallback chain's last resort is the server default timezone (Asia/Shanghai), not UTC.
    • Channel create: group.time_window is validated in minutes on every endpoint, including create — the create description previously said seconds.
  • models_gen.go re-emitted via go generate ./... to match (two doc-comment updates only — no field, type, or JSON-tag changes).

Test plan

  • go build ./...
  • go vet ./...
  • go test -race -count=1 ./...
  • go generate ./... re-run post-commit produces zero diff (drift check, matches CI's generate-drift job)
  • golangci-lint run — 0 issues
  • Diff reviewed line-by-line — doc-comment/spec-text only, zero behavioral change

Two description-only corrections carried over from the upstream spec:

- Automation rule create: the timezone fallback chain's last resort is
  the server default timezone (Asia/Shanghai), not UTC.
- Channel create: the group time_window field is validated in minutes
  everywhere, including create — the create description previously
  said seconds.

openapi/openapi.{en,zh}.json refreshed from flashduty-docs main;
models_gen.go re-emitted to match (doc comments only, no field/type
changes).
@ysyneu
ysyneu merged commit a1fb553 into main Jul 28, 2026
4 checks passed
@ysyneu
ysyneu deleted the chore/sync-openapi-spec branch July 28, 2026 14:04
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