Description
new OpenApiStreamReader().Read(stream, out var diagnostic);
(or its async variant)
Did not require knowing the format of the document (JSON/YAML) in advance. This was handy as when building general purpose tools, it's not something that I know in advance. Parsing the file extension/url extension/response content type header might help discovering it, but it's not reliable.
The equivalent method
OpenApiDocument.LoadAsync(input, "unknown", settings)
Requires passing the format, which I believe is a regression in functionality. We should work to restore the same level of functionality.
Also, there are a number of places in the documentation and doc comments that still refer to the old initialization and require to be updated before GA.
https://github.com/search?q=repo%3Amicrosoft%2FOpenAPI.NET%20OpenApiStreamReader&type=code
Activity