yamlDocumentsToDeclarativeWorkspace()
Converts the AaC documents of one workspace to its declarative model.
export declare function yamlDocumentsToDeclarativeWorkspace(documents: EntityData[], options?: YamlDocumentsToDeclarativeWorkspaceOptions): Required<DeclarativeWorkspaceModel>;
Parameters
Parameter | Type | Description |
|---|---|---|
documents | the AaC documents of the workspace | |
options | (Optional) the conversion options |
Returns
Required<DeclarativeWorkspaceModel>
the declarative model of the workspace
Remarks
The documents must be valid against the AaC schema. The ids must be unique in each collection of the declarative model. For example, all chart types share the visualizationObjects collection. The function does not report duplicate ids.
The function generates the filter context ids. Two calls give different ids.