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
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi.YamlReader/OpenApiYamlReader.cs
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) Microsoft Corporation. All rights reserved.
1
+
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license.
3
3
4
4
usingSystem;
@@ -59,9 +59,8 @@ public OpenApiYamlReader(OpenApiYamlReaderSettings settings)
59
59
60
60
/// <inheritdoc/>
61
61
/// <remarks>
62
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
62
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
63
63
/// </remarks>
64
-
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a <see cref="ReadResult"/> is created.</exception>
65
64
publicasyncTask<ReadResult>ReadAsync(Streaminput,
66
65
Urilocation,
67
66
OpenApiReaderSettingssettings,
@@ -100,9 +99,8 @@ await CopyToMemoryStreamAsync(
100
99
101
100
/// <inheritdoc/>
102
101
/// <remarks>
103
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
102
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
104
103
/// </remarks>
105
-
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a <see cref="ReadResult"/> is created.</exception>
106
104
publicReadResultRead(MemoryStreaminput,
107
105
Urilocation,
108
106
OpenApiReaderSettingssettings)
@@ -203,9 +201,8 @@ public static ReadResult Read(JsonNode jsonNode, Uri location, OpenApiReaderSett
203
201
204
202
/// <inheritdoc/>
205
203
/// <remarks>
206
-
/// OpenAPI semantic errors are returned in the <paramref name="diagnostic"/>.
204
+
/// OpenAPI semantic and parser errors are returned in the <paramref name="diagnostic"/>.
207
205
/// </remarks>
208
-
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a fragment is created.</exception>
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/Interfaces/IOpenApiReader.cs
+4-10Lines changed: 4 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) Microsoft Corporation. All rights reserved.
1
+
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license.
3
3
4
4
usingSystem;
@@ -23,10 +23,8 @@ public interface IOpenApiReader
23
23
/// <param name="cancellationToken">Propagates notification that an operation should be cancelled.</param>
24
24
/// <returns></returns>
25
25
/// <remarks>
26
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
26
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
27
27
/// </remarks>
28
-
/// <exception cref="System.Text.Json.JsonException">Thrown when syntax-level JSON errors are detected before a <see cref="ReadResult"/> is created.</exception>
29
-
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a <see cref="ReadResult"/> is created.</exception>
@@ -37,10 +35,8 @@ public interface IOpenApiReader
37
35
/// <param name="settings"></param>
38
36
/// <returns></returns>
39
37
/// <remarks>
40
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
38
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
41
39
/// </remarks>
42
-
/// <exception cref="System.Text.Json.JsonException">Thrown when syntax-level JSON errors are detected before a <see cref="ReadResult"/> is created.</exception>
43
-
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a <see cref="ReadResult"/> is created.</exception>
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
736
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
737
737
/// </remarks>
738
-
/// <exception cref="System.Text.Json.JsonException">Thrown when syntax-level JSON errors are detected before a <see cref="ReadResult"/> is created.</exception>
739
-
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a <see cref="ReadResult"/> is created.</exception>
740
738
publicstaticReadResultLoad(MemoryStreamstream,
741
739
string?format=null,
742
740
OpenApiReaderSettings?settings=null)
@@ -752,10 +750,8 @@ public static ReadResult Load(MemoryStream stream,
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
753
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
756
754
/// </remarks>
757
-
/// <exception cref="System.Text.Json.JsonException">Thrown when syntax-level JSON errors are detected before a <see cref="ReadResult"/> is created.</exception>
758
-
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a <see cref="ReadResult"/> is created.</exception>
/// <param name="cancellationToken">Propagates information about operation cancelling.</param>
771
767
/// <returns></returns>
772
768
/// <remarks>
773
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
769
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
774
770
/// </remarks>
775
-
/// <exception cref="System.Text.Json.JsonException">Thrown when syntax-level JSON errors are detected before a <see cref="ReadResult"/> is created.</exception>
776
-
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a <see cref="ReadResult"/> is created.</exception>
@@ -788,10 +782,8 @@ public static async Task<ReadResult> LoadAsync(Stream stream, string? format = n
788
782
/// <param name="settings"></param>
789
783
/// <returns></returns>
790
784
/// <remarks>
791
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
785
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
792
786
/// </remarks>
793
-
/// <exception cref="System.Text.Json.JsonException">Thrown when syntax-level JSON errors are detected before a <see cref="ReadResult"/> is created.</exception>
794
-
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a <see cref="ReadResult"/> is created.</exception>
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi/Reader/OpenApiJsonReader.cs
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) Microsoft Corporation. All rights reserved.
1
+
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license.
3
3
4
4
usingSystem;
@@ -24,9 +24,8 @@ public class OpenApiJsonReader : IOpenApiReader
24
24
/// <param name="settings">The Reader settings to be used during parsing.</param>
25
25
/// <returns></returns>
26
26
/// <remarks>
27
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
27
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
28
28
/// </remarks>
29
-
/// <exception cref="System.Text.Json.JsonException">Thrown when syntax-level JSON errors are detected before a <see cref="ReadResult"/> is created.</exception>
30
29
publicReadResultRead(MemoryStreaminput,
31
30
Urilocation,
32
31
OpenApiReaderSettingssettings)
@@ -128,9 +127,8 @@ public ReadResult Read(JsonNode jsonNode,
128
127
/// <param name="cancellationToken">Propagates notifications that operations should be cancelled.</param>
129
128
/// <returns></returns>
130
129
/// <remarks>
131
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
130
+
/// OpenAPI semantic and parser errors are returned in the <see cref="ReadResult.Diagnostic"/>.
132
131
/// </remarks>
133
-
/// <exception cref="System.Text.Json.JsonException">Thrown when syntax-level JSON errors are detected before a <see cref="ReadResult"/> is created.</exception>
134
132
publicasyncTask<ReadResult>ReadAsync(Streaminput,
135
133
Urilocation,
136
134
OpenApiReaderSettingssettings,
@@ -164,9 +162,8 @@ public async Task<ReadResult> ReadAsync(Stream input,
164
162
165
163
/// <inheritdoc/>
166
164
/// <remarks>
167
-
/// OpenAPI semantic errors are returned in the <paramref name="diagnostic"/>.
165
+
/// OpenAPI semantic and parser errors are returned in the <paramref name="diagnostic"/>.
168
166
/// </remarks>
169
-
/// <exception cref="System.Text.Json.JsonException">Thrown when syntax-level JSON errors are detected before a fragment is created.</exception>
0 commit comments