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 d5b8c30
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/Microsoft.OpenApi.YamlReader/OpenApiYamlReader.cs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,9 @@ public OpenApiYamlReader(OpenApiYamlReaderSettings settings)
59
59
60
60
/// <inheritdoc/>
61
61
/// <remarks>
62
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>. Syntax-level YAML
63
-
/// errors can throw before a <see cref="ReadResult"/> is created.
62
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
64
63
/// </remarks>
64
+
/// <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"/>. Syntax-level YAML
104
-
/// errors can throw before a <see cref="ReadResult"/> is created.
103
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
105
104
/// </remarks>
105
+
/// <exception cref="OpenApiReaderException">Thrown when syntax-level YAML errors are detected before a <see cref="ReadResult"/> is created.</exception>
106
106
publicReadResultRead(MemoryStreaminput,
107
107
Urilocation,
108
108
OpenApiReaderSettingssettings)
@@ -203,9 +203,9 @@ public static ReadResult Read(JsonNode jsonNode, Uri location, OpenApiReaderSett
203
203
204
204
/// <inheritdoc/>
205
205
/// <remarks>
206
-
/// OpenAPI semantic errors are returned in the <paramref name="diagnostic"/>. Syntax-level YAML
207
-
/// errors can throw before a fragment is created.
206
+
/// OpenAPI semantic errors are returned in the <paramref name="diagnostic"/>.
208
207
/// </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
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,10 @@ 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"/>. Syntax-level JSON or YAML
27
-
/// errors can throw before a <see cref="ReadResult"/> is created.
26
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
28
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>
@@ -36,9 +37,10 @@ public interface IOpenApiReader
36
37
/// <param name="settings"></param>
37
38
/// <returns></returns>
38
39
/// <remarks>
39
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>. Syntax-level JSON or YAML
40
-
/// errors can throw before a <see cref="ReadResult"/> is created.
40
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
41
41
/// </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"/>. Syntax-level JSON or YAML
737
-
/// errors can throw before a <see cref="ReadResult"/> is created.
736
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
738
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>
739
740
publicstaticReadResultLoad(MemoryStreamstream,
740
741
string?format=null,
741
742
OpenApiReaderSettings?settings=null)
@@ -751,9 +752,10 @@ public static ReadResult Load(MemoryStream stream,
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>. Syntax-level JSON or YAML
755
-
/// errors can throw before a <see cref="ReadResult"/> is created.
755
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
756
756
/// </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>
769
771
/// <returns></returns>
770
772
/// <remarks>
771
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>. Syntax-level JSON or YAML
772
-
/// errors can throw before a <see cref="ReadResult"/> is created.
773
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
773
774
/// </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>
@@ -785,9 +788,10 @@ public static async Task<ReadResult> LoadAsync(Stream stream, string? format = n
785
788
/// <param name="settings"></param>
786
789
/// <returns></returns>
787
790
/// <remarks>
788
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>. Syntax-level JSON or YAML
789
-
/// errors can throw before a <see cref="ReadResult"/> is created.
791
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
790
792
/// </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
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ 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"/>. Syntax-level JSON
28
-
/// errors can throw before a <see cref="ReadResult"/> is created.
27
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
29
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
30
publicReadResultRead(MemoryStreaminput,
31
31
Urilocation,
32
32
OpenApiReaderSettingssettings)
@@ -128,9 +128,9 @@ public ReadResult Read(JsonNode jsonNode,
128
128
/// <param name="cancellationToken">Propagates notifications that operations should be cancelled.</param>
129
129
/// <returns></returns>
130
130
/// <remarks>
131
-
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>. Syntax-level JSON
132
-
/// errors can throw before a <see cref="ReadResult"/> is created.
131
+
/// OpenAPI semantic errors are returned in the <see cref="ReadResult.Diagnostic"/>.
133
132
/// </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
134
publicasyncTask<ReadResult>ReadAsync(Streaminput,
135
135
Urilocation,
136
136
OpenApiReaderSettingssettings,
@@ -164,9 +164,9 @@ public async Task<ReadResult> ReadAsync(Stream input,
164
164
165
165
/// <inheritdoc/>
166
166
/// <remarks>
167
-
/// OpenAPI semantic errors are returned in the <paramref name="diagnostic"/>. Syntax-level JSON
168
-
/// errors can throw before a fragment is created.
167
+
/// OpenAPI semantic errors are returned in the <paramref name="diagnostic"/>.
169
168
/// </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