-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor readers to reduce surface area #1975
base: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
…quired Signed-off-by: Vincent Biret <vibiret@microsoft.com>
…nAPI.NET into mk/fix-json-reader
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
…nAPI.NET into mk/fix-json-reader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 15 out of 30 changed files in this pull request and generated no suggestions.
Files not reviewed (15)
- test/Microsoft.OpenApi.Readers.Tests/V3Tests/OpenApiCallbackTests.cs: Evaluated as low risk
- test/Microsoft.OpenApi.Readers.Tests/V3Tests/OpenApiDocumentTests.cs: Evaluated as low risk
- src/Microsoft.OpenApi/Interfaces/IOpenApiReader.cs: Evaluated as low risk
- src/Microsoft.OpenApi/Models/OpenApiDocument.cs: Evaluated as low risk
- src/Microsoft.OpenApi/Reader/OpenApiJsonReader.cs: Evaluated as low risk
- src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs: Evaluated as low risk
- test/Microsoft.OpenApi.Readers.Tests/V3Tests/OpenApiEncodingTests.cs: Evaluated as low risk
- test/Microsoft.OpenApi.Readers.Tests/V3Tests/OpenApiDiscriminatorTests.cs: Evaluated as low risk
- test/Microsoft.OpenApi.Readers.Tests/V3Tests/OpenApiExampleTests.cs: Evaluated as low risk
- src/Microsoft.OpenApi.Readers/OpenApiYamlReader.cs: Evaluated as low risk
- src/Microsoft.OpenApi.Hidi/OpenApiService.cs: Evaluated as low risk
- test/Microsoft.OpenApi.Readers.Tests/V31Tests/OpenApiSchemaTests.cs: Evaluated as low risk
- test/Microsoft.OpenApi.Readers.Tests/V31Tests/OpenApiDocumentTests.cs: Evaluated as low risk
- test/Microsoft.OpenApi.Hidi.Tests/Services/OpenApiFilterServiceTests.cs: Evaluated as low risk
- test/Microsoft.OpenApi.Readers.Tests/OpenApiReaderTests/OpenApiDiagnosticTests.cs: Evaluated as low risk
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
{ | ||
throw new InvalidOperationException($"Could not download the file at {url}", ex); | ||
// YAML or other non-JSON format; copy remaining input to a new stream. | ||
preparedStream = new MemoryStream(); |
Check warning
Code scanning / CodeQL
Missing Dispose call on local IDisposable Warning
{ | ||
throw new InvalidOperationException($"Could not open the file at {url}", ex); | ||
// Buffer stream for non-JSON formats (e.g., YAML) since they require synchronous reading | ||
preparedStream = new MemoryStream(); |
Check warning
Code scanning / CodeQL
Missing Dispose call on local IDisposable Warning
Quality Gate failedFailed conditions |
Fixes #1954
fixes #1951
Fixes #1964
Fixes #1917
closes #1958
closes #1929