Class OpenApiDocumentFactory
Creates an NSwag.OpenApiDocument from a specified path or URL.
public static class OpenApiDocumentFactory
- Inheritance
-
OpenApiDocumentFactory
- Inherited Members
Methods
CreateAsync(string)
Creates a new instance of the NSwag.OpenApiDocument class asynchronously.
public static Task<OpenApiDocument> CreateAsync(string openApiPath)
Parameters
openApiPath
stringThe path or URL to the OpenAPI specification.
Returns
- Task<OpenApiDocument>
A new instance of the NSwag.OpenApiDocument class.