OpenApiDocumentParser.ParseAsync Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses OpenAPI document.
public System.Threading.Tasks.Task<Microsoft.SemanticKernel.Plugins.OpenApi.RestApiSpecification> ParseAsync(System.IO.Stream stream, Microsoft.SemanticKernel.Plugins.OpenApi.OpenApiDocumentParserOptions? options = default, System.Threading.CancellationToken cancellationToken = default);member this.ParseAsync : System.IO.Stream * Microsoft.SemanticKernel.Plugins.OpenApi.OpenApiDocumentParserOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Plugins.OpenApi.RestApiSpecification>Public Function ParseAsync (stream As Stream, Optional options As OpenApiDocumentParserOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RestApiSpecification)Parameters
- stream
- Stream
Stream containing OpenAPI document to parse.
- options
- OpenApiDocumentParserOptions
Options for parsing OpenAPI document.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Specification of the REST API.