Skip to content

Commit

Permalink
better schema def
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx committed Jan 29, 2025
1 parent c042370 commit b357706
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 25 deletions.
2 changes: 1 addition & 1 deletion core/dbt/artifacts/resources/v1/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __bool__(self):
@dataclass
class HasRelationMetadata(dbtClassMixin):
database: Optional[str]
schema: str
schema: Optional[str]

# Can't set database to None like it ought to be
# because it messes up the subclasses and default parameters
Expand Down
216 changes: 192 additions & 24 deletions schemas/dbt/manifest/v12.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -783,7 +790,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"alias": {
"type": "string"
Expand Down Expand Up @@ -1193,7 +1207,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -1999,7 +2020,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -2665,7 +2693,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -3482,7 +3517,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -4405,7 +4447,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"alias": {
"type": "string"
Expand Down Expand Up @@ -4910,7 +4959,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -5716,7 +5772,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -6443,7 +6506,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -7369,7 +7439,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"alias": {
"type": "string"
Expand Down Expand Up @@ -7789,7 +7866,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -10090,7 +10174,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -10752,7 +10843,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"alias": {
"type": "string"
Expand Down Expand Up @@ -11162,7 +11260,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -11968,7 +12073,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -12634,7 +12746,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -13451,7 +13570,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -14374,7 +14500,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"alias": {
"type": "string"
Expand Down Expand Up @@ -14879,7 +15012,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -15685,7 +15825,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -16412,7 +16559,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down Expand Up @@ -17338,7 +17492,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"alias": {
"type": "string"
Expand Down Expand Up @@ -17749,7 +17910,14 @@
]
},
"schema": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
Expand Down

0 comments on commit b357706

Please sign in to comment.