You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 04dc7cb
Browse filesBrowse the repository at this point in the historyBrowse files
Refactors binding serialization for AsyncAPI v2/v3
Consolidates binding serialization logic for AsyncAPI v2 and v3.
The change introduces `SerializeV2` and `SerializeV3` methods in binding classes,
deprecating the old `SerializeProperties` to streamline the serialization process.
Additionally, it adds a `SerializationContext` to the `AsyncApiWorkspace`
to enable bindings to access parent context during serialization.
This addresses inconsistencies in binding serialization across different AsyncAPI versions,
and allows http bindings to serialize according to the spec.
/// Represents the HTTP operation type (used in V2 serialization).
23
+
/// </summary>
15
24
publicenumHttpOperationType
16
25
{
17
26
[Display("request")]
@@ -22,12 +31,7 @@ public enum HttpOperationType
22
31
}
23
32
24
33
/// <summary>
25
-
/// REQUIRED. Type of operation. Its value MUST be either request or response.
26
-
/// </summary>
27
-
publicHttpOperationType?Type{get;set;}
28
-
29
-
/// <summary>
30
-
/// When type is request, this is the HTTP method, otherwise it MUST be ignored. Its value MUST be one of GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, and TRACE.
34
+
/// The HTTP method, e.g. GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, and TRACE.
31
35
/// </summary>
32
36
publicstringMethod{get;set;}
33
37
@@ -36,10 +40,16 @@ public enum HttpOperationType
36
40
/// </summary>
37
41
publicAsyncApiJsonSchemaQuery{get;set;}
38
42
39
-
/// <summary>
40
-
/// Serialize to AsyncAPI V2 document without using reference.
0 commit comments