Skip to content

Commit

Permalink
s/number/integer on limit type
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Feb 12, 2025
1 parent bc66d78 commit b658787
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 32 deletions.
145 changes: 115 additions & 30 deletions schemas/dbt_yml_files.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
Expand All @@ -20,7 +22,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
Expand Down Expand Up @@ -57,7 +61,12 @@
"type": "array",
"items": {
"type": "object",
"required": ["depends_on", "name", "owner", "type"],
"required": [
"depends_on",
"name",
"owner",
"type"
],
"$comment": "NB: depends_on is not strictly required, but is _expected_ according to the documentation",
"properties": {
"name": {
Expand All @@ -69,7 +78,13 @@
},
"type": {
"type": "string",
"enum": ["dashboard", "notebook", "analysis", "ml", "application"]
"enum": [
"dashboard",
"notebook",
"analysis",
"ml",
"application"
]
},
"depends_on": {
"type": "array",
Expand All @@ -82,14 +97,20 @@
},
"maturity": {
"type": "string",
"enum": ["high", "medium", "low"]
"enum": [
"high",
"medium",
"low"
]
},
"meta": {
"type": "object"
},
"owner": {
"type": "object",
"required": ["email"],
"required": [
"email"
],
"properties": {
"name": {
"type": "string"
Expand All @@ -113,7 +134,10 @@
"type": "array",
"items": {
"type": "object",
"required": ["name", "owner"],
"required": [
"name",
"owner"
],
"properties": {
"name": {
"type": "string"
Expand All @@ -139,7 +163,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
Expand All @@ -148,7 +174,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
Expand Down Expand Up @@ -177,7 +205,12 @@
"type": "array",
"items": {
"type": "object",
"required": ["name", "label", "calculation_method", "expression"],
"required": [
"name",
"label",
"calculation_method",
"expression"
],
"if": {
"properties": {
"calculation_method": {
Expand All @@ -186,7 +219,12 @@
}
},
"then": {
"required": ["name", "label", "calculation_method", "expression"]
"required": [
"name",
"label",
"calculation_method",
"expression"
]
},
"else": {
"required": [
Expand Down Expand Up @@ -228,7 +266,11 @@
"type": "array",
"items": {
"type": "object",
"required": ["field", "operator", "value"],
"required": [
"field",
"operator",
"value"
],
"properties": {
"field": {
"type": "string"
Expand Down Expand Up @@ -270,7 +312,12 @@
},
"period": {
"type": "string",
"enum": ["day", "week", "month", "year"]
"enum": [
"day",
"week",
"month",
"year"
]
}
}
}
Expand All @@ -282,14 +329,20 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"access": {
"type": "string",
"enum": ["private", "protected", "public"]
"enum": [
"private",
"protected",
"public"
]
},
"columns": {
"type": "array",
Expand Down Expand Up @@ -328,7 +381,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["v"],
"required": [
"v"
],
"properties": {
"v": {
"type": "number"
Expand Down Expand Up @@ -360,7 +415,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
Expand Down Expand Up @@ -417,7 +474,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
Expand Down Expand Up @@ -498,7 +557,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
Expand Down Expand Up @@ -553,7 +614,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"title": "Name",
Expand Down Expand Up @@ -652,7 +715,9 @@
},
"column_properties": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
Expand Down Expand Up @@ -697,7 +762,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["type"],
"required": [
"type"
],
"properties": {
"columns": {
"$ref": "#/$defs/string_or_array_of_strings"
Expand Down Expand Up @@ -771,14 +838,21 @@
},
"freshness_rules": {
"type": "object",
"required": ["count", "period"],
"required": [
"count",
"period"
],
"properties": {
"count": {
"$ref": "#/$defs/number_or_jinja_string"
},
"period": {
"type": "string",
"enum": ["minute", "hour", "day"]
"enum": [
"minute",
"hour",
"day"
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -828,7 +902,10 @@
"description": "Configuration, specific to BigQuery adapter, used to setup authorized views.",
"items": {
"type": "object",
"required": ["database", "project"],
"required": [
"database",
"project"
],
"properties": {
"database": {
"type": "string"
Expand Down Expand Up @@ -935,7 +1012,7 @@
"type": "string"
},
"limit": {
"type": "number"
"type": "integer"
},
"schema": {
"type": "string",
Expand All @@ -948,7 +1025,10 @@
},
{
"type": "string",
"enum": ["warn", "error"]
"enum": [
"warn",
"error"
]
}
]
},
Expand All @@ -974,7 +1054,10 @@
"properties": {
"relationships": {
"type": "object",
"required": ["to", "field"],
"required": [
"to",
"field"
],
"properties": {
"name": {
"type": "string"
Expand Down Expand Up @@ -1009,7 +1092,9 @@
"properties": {
"accepted_values": {
"type": "object",
"required": ["values"],
"required": [
"values"
],
"properties": {
"name": {
"type": "string"
Expand Down Expand Up @@ -1076,4 +1161,4 @@
]
}
}
}
}
4 changes: 2 additions & 2 deletions schemas/latest/dbt_project-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@
"additionalProperties": false
},
"limit": {
"type": "number"
"type": "integer"
},
"location": {
"type": "string"
Expand Down Expand Up @@ -1121,4 +1121,4 @@
"type": "string"
}
}
}
}

0 comments on commit b658787

Please sign in to comment.