|
32 | 32 | from datapilot.core.platforms.dbt.schemas.manifest import AltimateSeedConfig |
33 | 33 | from datapilot.core.platforms.dbt.schemas.manifest import AltimateSeedNode |
34 | 34 | from datapilot.core.platforms.dbt.schemas.manifest import AltimateSourceConfig |
| 35 | +from datapilot.core.platforms.dbt.schemas.manifest import AltimateSupportedLanguage |
35 | 36 | from datapilot.core.platforms.dbt.schemas.manifest import AltimateTestConfig |
36 | 37 | from datapilot.core.platforms.dbt.schemas.manifest import AltimateTestMetadata |
37 | 38 | from datapilot.core.platforms.dbt.wrappers.manifest.v12.schemas import TEST_TYPE_TO_NODE_MAP |
@@ -87,7 +88,7 @@ def _get_node(self, node: ManifestNode) -> AltimateManifestNode: |
87 | 88 | alias=node.alias, |
88 | 89 | raw_code=raw_code, |
89 | 90 | language=language, |
90 | | - config=AltimateNodeConfig(**node.config.__dict__) if node.config else None, |
| 91 | + config=AltimateNodeConfig(**node.config.model_dump()) if node.config else None, |
91 | 92 | checksum=AltimateFileHash( |
92 | 93 | name=node.checksum.name if node.checksum else None, |
93 | 94 | checksum=node.checksum.checksum if node.checksum else None, |
@@ -182,7 +183,9 @@ def _get_macro(self, macro: MacroNode) -> AltimateManifestMacroNode: |
182 | 183 | patch_path=macro.patch_path, |
183 | 184 | arguments=[AltimateMacroArgument(**arg.model_dump()) for arg in macro.arguments] if macro.arguments else None, |
184 | 185 | created_at=macro.created_at, |
185 | | - supported_languages=macro.supported_languages, |
| 186 | + supported_languages=[AltimateSupportedLanguage(lang.value) for lang in macro.supported_languages] |
| 187 | + if macro.supported_languages |
| 188 | + else None, |
186 | 189 | ) |
187 | 190 |
|
188 | 191 | def _get_exposure(self, exposure: ExposureNode) -> AltimateManifestExposureNode: |
|
0 commit comments