Skip to content

VAPI-3162-REFER - #211

Open
atelegu wants to merge 17 commits into
mainfrom
VAPI-3162-REFER
Open

VAPI-3162-REFER#211
atelegu wants to merge 17 commits into
mainfrom
VAPI-3162-REFER

Conversation

@atelegu

@atelegu atelegu commented Jun 19, 2026

Copy link
Copy Markdown

Adds the <Refer> BXML verb.

  • lib/bandwidth-sdk/models/bxml/verbs/refer.rb: new Bxml::Refer verb, takes sip_uri untyped/shared - same pattern Transfer already uses with Bxml::SipUri, no separate Refer-only SipUri type and no cross-field validation restricting which SipUri attributes are legal per verb (matches csharp-sdk#201, which dropped this as over-engineering).
  • Spec added at spec/unit/models/bxml/verbs/refer_spec.rb.
  • ReferCompleteCallback model is out of scope here - lands separately once VAPI-3440 merges. Deleted an orphaned Bandwidth::SipUri REST/JSON model (lib/bandwidth-sdk/models/sip_uri.rb) and its bandwidth.yml schema that had no remaining consumer once that callback work was descoped.

Tests: bundle exec rspec spec/unit/models/bxml/verbs/refer_spec.rb passes; no new failures in spec/unit.

VAPI-3436

@atelegu
atelegu requested review from a team as code owners June 19, 2026 07:36
@bwappsec

bwappsec commented Jun 19, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@stampercasey stampercasey 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.

Review from Claude Code — see inline comments for individual findings. Two blockers; the callback model and enums are solid.

Comment thread lib/bandwidth-sdk.rb Outdated
Comment thread lib/bandwidth-sdk/models/refer_complete_callback.rb Outdated
Comment thread lib/bandwidth-sdk/models/sip_uri.rb Outdated
Comment thread lib/bandwidth-sdk/models/refer_complete_callback.rb Outdated
Comment thread spec/unit/models/refer_complete_callback_spec.rb Outdated
Comment thread spec/unit/models/refer_spec.rb Outdated
Comment thread .openapi-generator/FILES Outdated
@atelegu
atelegu requested a review from stampercasey June 22, 2026 09:21
stampercasey
stampercasey previously approved these changes Jun 22, 2026
The referComplete callback model will land later via a separate
api-specs-driven PR once VAPI-3440 merges. This also removes the
top-level Bandwidth::Refer model (and its ReferCompleteMethodEnum/
ReferCallStatusEnum helpers), which duplicated Bxml::Refer at the
openapi-generator layer and had no equivalent for any other BXML
verb (e.g. Transfer has no top-level Bandwidth::Transfer model).
Adds a spec for Bxml::Refer covering construction with a bare
SipUri and correct BXML rendering.
Bandwidth::SipUri (JSON model layer) and its bandwidth.yml schema were
left over from the deleted top-level Refer/ReferCompleteCallback models
and had no remaining consumer. .openapi-generator/FILES still listed
refer.rb, refer_call_status_enum.rb, refer_complete_callback.rb,
refer_complete_method_enum.rb, and their specs after those files were
already deleted.
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.

3 participants