Skip to content

Commit b4a7118

Browse files
committed
upgrade to 3.1.0
1 parent 7085d23 commit b4a7118

5 files changed

Lines changed: 72 additions & 4 deletions

File tree

.todo/tasks.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[
2+
{
3+
"id": "TASK_1",
4+
"priority": "LOW",
5+
"tags": [],
6+
"title": "V3.1.0",
7+
"description": "Ensure 3.1.0 compatibility ",
8+
"status": "TODO",
9+
"date": {
10+
"date": {
11+
"year": 2026,
12+
"month": 2,
13+
"day": 2
14+
},
15+
"time": {
16+
"hour": 21,
17+
"minute": 9,
18+
"second": 46,
19+
"nano": 727937352
20+
}
21+
},
22+
"isImported": false
23+
},
24+
{
25+
"id": "TASK_3",
26+
"priority": "LOW",
27+
"tags": [],
28+
"title": "V2 channels must not be empty",
29+
"description": "",
30+
"status": "TODO",
31+
"date": {
32+
"date": {
33+
"year": 2026,
34+
"month": 2,
35+
"day": 2
36+
},
37+
"time": {
38+
"hour": 21,
39+
"minute": 10,
40+
"second": 2,
41+
"nano": 977810510
42+
}
43+
},
44+
"isImported": false
45+
},
46+
{
47+
"id": "TASK_6",
48+
"priority": "LOW",
49+
"tags": [],
50+
"title": "Bindings must work for v3 and v2",
51+
"description": "",
52+
"status": "TODO",
53+
"date": {
54+
"date": {
55+
"year": 2026,
56+
"month": 2,
57+
"day": 2
58+
},
59+
"time": {
60+
"hour": 21,
61+
"minute": 10,
62+
"second": 16,
63+
"nano": 294662272
64+
}
65+
},
66+
"isImported": false
67+
}
68+
]

src/ByteBard.AsyncAPI/Models/AsyncApiDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void SerializeV3(IAsyncApiWriter writer)
147147
writer.WriteStartObject();
148148

149149
// asyncApi
150-
writer.WriteRequiredProperty(AsyncApiConstants.AsyncApi, "3.0.0");
150+
writer.WriteRequiredProperty(AsyncApiConstants.AsyncApi, "3.1.0");
151151

152152
// info
153153
writer.WriteRequiredObject(AsyncApiConstants.Info, this.Info, (w, i) => i.SerializeV3(w));

test/ByteBard.AsyncAPI.Tests/AsyncApiDocumentV3Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void V3_WithComplexInput_CanReSerialize()
1717
// Arrange
1818
var expected =
1919
"""
20-
asyncapi: 3.0.0
20+
asyncapi: 3.1.0
2121
info:
2222
title: Streetlights Kafka API
2323
version: 1.0.0

test/ByteBard.AsyncAPI.Tests/V3_TestData/AsyncApiSchema_InlinedReferences.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
asyncapi: 3.0.0
1+
asyncapi: 3.1.0
22
info:
33
title: Streetlights Kafka API
44
version: 1.0.0

test/ByteBard.AsyncAPI.Tests/V3_TestData/AsyncApiSchema_NoInlinedReferences.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
asyncapi: 3.0.0
1+
asyncapi: 3.1.0
22
info:
33
title: Streetlights Kafka API
44
version: 1.0.0

0 commit comments

Comments
 (0)