Skip to content

Commit c73a0b4

Browse files
authored
fix: parent child defaults (#27)
1 parent a7eb98d commit c73a0b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/datapilot/core/platforms/dbt/insights/checks/check_model_parents_and_childs.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ def get_config_schema(cls):
112112
"$schema": "http://json-schema.org/draft-07/schema#",
113113
"type": "object",
114114
"properties": {
115-
cls.MAX_CHILDS_STR: {
116-
"type": "integer",
117-
"description": "The maximum number of childs a model can have.",
118-
},
115+
cls.MAX_CHILDS_STR: {"type": "integer", "description": "The maximum number of childs a model can have.", "default": 3},
119116
cls.MIN_CHILDS_STR: {
120117
"type": "integer",
121118
"description": "The minimum number of childs a model can have.",
@@ -124,6 +121,7 @@ def get_config_schema(cls):
124121
cls.MAX_PARENTS_STR: {
125122
"type": "integer",
126123
"description": "The maximum number of parents a model can have.",
124+
"default": 3,
127125
},
128126
cls.MIN_PARENTS_STR: {
129127
"type": "integer",

0 commit comments

Comments
 (0)