Skip to content

Add callback definition for call status change events - #64

Merged
YadingFang merged 1 commit into
mainfrom
feature/openapi-callbacks-sink
Dec 19, 2025
Merged

YadingFang merged 1 commit into
mainfrom
feature/openapi-callbacks-sink

Conversation

@YadingFang

Copy link
Copy Markdown
Contributor

What type of PR is this?

Add one of the following kinds:

  • enhancement/feature

What this PR does / why we need it:

This PR adds ClickToDial call status change notifications using OpenAPI 3 callbacks under POST /calls, resolving the callback URL from the consumer-provided sink field ({$request.body#/sink}).

It also references the existing CALL_STATUS_CHANGED_EXAMPLE CloudEvents payload in the callback request body, addressing the Redocly lint warning about an unused example component.

This change formalizes the existing sink-based notification mechanism in the OpenAPI spec using callbacks.

Which issue(s) this PR fixes:

Fixes #62

@github-actions

Copy link
Copy Markdown

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 2 0 0.0s
✅ API spectral 1 0 1.69s
✅ GHERKIN gherkin-lint 3 0 1.08s
✅ REPOSITORY git_diff yes no 0.02s
✅ REPOSITORY secretlint yes no 0.75s
✅ YAML yamllint 1 0 0.48s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@XunliYang XunliYang left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YadingFang
YadingFang merged commit 6a09669 into main Dec 19, 2025
2 checks passed

@Wojiaozhenghao Wojiaozhenghao left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approve

@hdamker
hdamker deleted the feature/openapi-callbacks-sink branch March 9, 2026 11:26
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.

Add OpenAPI callbacks for sink-based status change events

3 participants