EdmModelOpenApiExtensions.ConvertToOpenApi 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.
Overloads
ConvertToOpenApi(IEdmModel) |
Convert IEdmModel to OpenApiDocument using default settings. |
ConvertToOpenApi(IEdmModel, OpenApiConvertSettings) |
Convert IEdmModel to OpenApiDocument using a convert settings. |
ConvertToOpenApi(IEdmModel)
Convert IEdmModel to OpenApiDocument using default settings.
public static Microsoft.OpenApi.Models.OpenApiDocument ConvertToOpenApi (this Microsoft.OData.Edm.IEdmModel model);
static member ConvertToOpenApi : Microsoft.OData.Edm.IEdmModel -> Microsoft.OpenApi.Models.OpenApiDocument
<Extension()>
Public Function ConvertToOpenApi (model As IEdmModel) As OpenApiDocument
Parameters
- model
- IEdmModel
The Edm model.
Returns
The converted Open API document object, OpenApiDocument.
Applies to
ConvertToOpenApi(IEdmModel, OpenApiConvertSettings)
Convert IEdmModel to OpenApiDocument using a convert settings.
public static Microsoft.OpenApi.Models.OpenApiDocument ConvertToOpenApi (this Microsoft.OData.Edm.IEdmModel model, Microsoft.OpenApi.OData.OpenApiConvertSettings settings);
static member ConvertToOpenApi : Microsoft.OData.Edm.IEdmModel * Microsoft.OpenApi.OData.OpenApiConvertSettings -> Microsoft.OpenApi.Models.OpenApiDocument
<Extension()>
Public Function ConvertToOpenApi (model As IEdmModel, settings As OpenApiConvertSettings) As OpenApiDocument
Parameters
- model
- IEdmModel
The Edm model.
- settings
- OpenApiConvertSettings
The convert settings.
Returns
The converted Open API document object, OpenApiDocument.