Skip to content

Commit 7e53ce9

Browse files
bieluclaude
andauthored
fix: use 'ws' as the WebSockets binding key (#43)
The bindings spec and schema name the WebSockets binding 'ws', not 'websockets'. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 84c9c96 commit 7e53ce9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/ByteBard.AsyncAPI.Bindings/WebSockets/WebSocketsChannelBinding.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class WebSocketsChannelBinding : ChannelBinding<WebSocketsChannelBinding>
2323
/// </summary>
2424
public AsyncApiJsonSchema Headers { get; set; }
2525

26-
public override string BindingKey => "websockets";
26+
public override string BindingKey => "ws";
2727

2828
protected override FixedFieldMap<WebSocketsChannelBinding> FixedFieldMap => new()
2929
{

‎test/ByteBard.AsyncAPI.Tests/Bindings/WebSockets/WebSocketBindings_Should.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void V2_WebSocketChannelBinding_WithFilledObject_SerializesAndDeserialize
1616
var expected =
1717
"""
1818
bindings:
19-
websockets:
19+
ws:
2020
method: POST
2121
query:
2222
description: this mah query

‎test/ByteBard.AsyncAPI.Tests/Models/AsyncApiChannel_Should.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void V2_AsyncApiChannel_WithWebSocketsBinding_Serializes()
3636
{
3737
var expected = """
3838
bindings:
39-
websockets:
39+
ws:
4040
method: POST
4141
query:
4242
properties:

0 commit comments

Comments
 (0)