Skip to content

chore: sync OpenAPI spec and regenerate - #79

Merged
ysyneu merged 1 commit into
mainfrom
chore/sync-spec-member-notify
Sep 21, 2026
Merged

ysyneu merged 1 commit into
mainfrom
chore/sync-spec-member-notify

Conversation

@ysyneu

@ysyneu ysyneu commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Syncs openapi/ from flashduty-docs main and regenerates.

Breaking (v0.x patch bump):

  • MemberNotifyRequest.DryRun removed; MemberNotifyResponse.HTML removed, AgentInstructions added. POST /member/notify rejects a body the sanitizer would rewrite with a 400, so there is no preview mode left to call.
  • AlertRules.ReadExport / AlertRules.WriteImport removed — /monit/rule/export and /monit/rule/import are no longer documented public endpoints.
  • InvestigationTarget follows the corrected drill-down contract: time_range required, DashboardInvestigationTarget.Variables (map) replaces VariableBindings, new query kind (QueryInvestigationTarget, DashboardQuery).

alert_rules_test.go: the presence test's fixture is updated to a target that is valid under the new schema; what it asserts (omit / empty / replace) is unchanged.

go vet ./... and go test -race -count=1 ./... pass locally.

- MemberNotifyRequest drops dry_run; MemberNotifyResponse drops html
  and gains agent_instructions. The endpoint now rejects a body the
  sanitizer would rewrite with a 400 instead of offering a preview.
- AlertRules.ReadExport / WriteImport removed: /monit/rule/export and
  /monit/rule/import are no longer part of the public API.
- InvestigationTarget follows the corrected drill-down contract:
  time_range is required, dashboard.variables replaces
  variable_bindings, and a query kind is added. The presence test's
  fixture now uses a valid target.
@ysyneu
ysyneu merged commit 29b5384 into main Sep 21, 2026
4 checks passed
@ysyneu
ysyneu deleted the chore/sync-spec-member-notify branch September 22, 2026 10:39
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