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
Adds OpenApiTomlWriter (mirrors OpenApiJsonWriter / OpenApiYamlWriter),
a new OpenApiConstants.Toml constant, and SerializeAsTomlAsync extension
methods so callers can export an OpenAPI document as TOML.
Public API declared in PublicAPI.Unshipped.txt; RS0026 suppressed for
consistency with existing SerializeAsJson/YamlAsync overloads.
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/GlobalSuppressions.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,3 +6,5 @@
6
6
usingSystem.Diagnostics.CodeAnalysis;
7
7
8
8
[assembly:SuppressMessage("Style","IDE0130:Namespace does not match folder structure",Justification="<Pending>",Scope="namespace",Target="~N:Microsoft.OpenApi")]
9
+
[assembly:SuppressMessage("ApiDesign","RS0026:Do not add multiple overloads with optional parameters",Justification="Consistent with existing SerializeAsJsonAsync and SerializeAsYamlAsync overloads.",Scope="member",Target="~M:Microsoft.OpenApi.OpenApiSerializableExtensions.SerializeAsTomlAsync``1(``0,System.IO.Stream,Microsoft.OpenApi.OpenApiSpecVersion,System.Threading.CancellationToken)~System.Threading.Tasks.Task")]
10
+
[assembly:SuppressMessage("ApiDesign","RS0026:Do not add multiple overloads with optional parameters",Justification="Consistent with existing SerializeAsJsonAsync and SerializeAsYamlAsync overloads.",Scope="member",Target="~M:Microsoft.OpenApi.OpenApiSerializableExtensions.SerializeAsTomlAsync``1(``0,Microsoft.OpenApi.OpenApiSpecVersion,System.Threading.CancellationToken)~System.Threading.Tasks.Task{System.String}")]
0 commit comments