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 ModelBuilder class.
Declaration
public ModelBuilder(IPackageExportable info, OpenApiOptions openApiOptions, ExporterOptions exporterOptions, FhirCapabiltyStatement caps = null)
Parameters
Type | Name | Description |
---|---|---|
IPackageExportable | info | The information. |
OpenApiOptions | openApiOptions | Options for controlling the operation. |
ExporterOptions | exporterOptions | Options for controlling the exporter. |
FhirCapabiltyStatement | 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 |
---|---|
OpenApiDocument | An OpenApiDocument. |