Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated docs functionality to account for dataclasses refactor #1716

1 change: 1 addition & 0 deletions core/dbt/contracts/graph/parsed.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class ParsedNodeDefaults(ParsedNodeMandatory):
columns: Dict[str, ColumnInfo] = field(default_factory=dict)
patch_path: Optional[str] = None
build_path: Optional[str] = None
docs: Dict[str, Any] = field(default_factory=dict)


@dataclass
Expand Down
8 changes: 7 additions & 1 deletion core/dbt/source_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@

class SourceConfig:
AppendListFields = {'pre-hook', 'post-hook', 'tags'}
ExtendDictFields = {'vars', 'column_types', 'quoting', 'persist_docs'}
ExtendDictFields = {
'vars',
'column_types',
'quoting',
'persist_docs',
'docs'
}
ClobberFields = {
'alias',
'schema',
Expand Down