Class ModelBuilder
An OpenAPI model builder - convert internal (normalized) models into OpenAPI-specific ones.
Inheritance
System.Object
ModelBuilder
Namespace: Microsoft.Health.Fhir.SpecManager.Language.OpenApi
Assembly: Microsoft.Health.Fhir.SpecManager.dll
Syntax
public class ModelBuilder : object
Constructors
| Improve this Doc View SourceModelBuilder(IPackageExportable, OpenApiOptions, ExporterOptions, FhirCapabiltyStatement)
Initializes a new instance of the Model
Declaration
public ModelBuilder(IPackageExportable info, OpenApiOptions openApiOptions, ExporterOptions exporterOptions, FhirCapabiltyStatement caps = null)
Parameters
Type | Name | Description |
---|---|---|
IPackage |
info | The information. |
Open |
openApiOptions | Options for controlling the operation. |
Exporter |
exporterOptions | Options for controlling the exporter. |
Fhir |
caps | (Optional) The capabilities. |
Methods
| Improve this Doc View SourceBuild()
Builds an OpenApiDocument, optionally filtered by the specified Capabilities.
Declaration
public OpenApiDocument Build()
Returns
Type | Description |
---|---|
Open |
An OpenApiDocument. |