From 81a7f007f3fac5d9e06bc3487cb2f627d4217c21 Mon Sep 17 00:00:00 2001 From: Bram Neijt Date: Fri, 10 Jun 2022 16:11:07 +0200 Subject: [PATCH] Fix schema validation error --- core/dbt/config/profile.py | 1 + core/dbt/config/project.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/dbt/config/profile.py b/core/dbt/config/profile.py index f7bb134bb5b..a28b84fd5fb 100644 --- a/core/dbt/config/profile.py +++ b/core/dbt/config/profile.py @@ -111,6 +111,7 @@ def __init__( self.threads = threads self.credentials = credentials self.profile_env_vars = {} # never available on init + self.manage_schemas = manage_schemas def to_profile_info(self, serialize_credentials: bool = False) -> Dict[str, Any]: """Unlike to_project_config, this dict is not a mirror of any existing diff --git a/core/dbt/config/project.py b/core/dbt/config/project.py index 3c9ccf4f168..6b354e73131 100644 --- a/core/dbt/config/project.py +++ b/core/dbt/config/project.py @@ -601,7 +601,7 @@ def to_project_config(self, with_packages=False): "asset-paths": self.asset_paths, "target-path": self.target_path, "snapshot-paths": self.snapshot_paths, - "managed-schemas": self.managed_schemas, + "managed-schemas": [schema.to_dict() for schema in self.managed_schemas], "clean-targets": self.clean_targets, "log-path": self.log_path, "quoting": self.quoting,