Skip to content

Commit

Permalink
Supporting custom granularity in time_spine
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoslatara committed Sep 25, 2024
1 parent 5628bab commit baea3df
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/dbt_bouncer/dbt_cloud/manifest_latest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,20 @@
from pydantic import ConfigDict, Field, constr


class CustomGranularity(BaseParserModel):
model_config = ConfigDict(
extra='forbid',
)
name: str
column_name: Optional[str] = None


class TimeSpine(BaseParserModel):
model_config = ConfigDict(
extra="forbid",
extra='forbid',
)
standard_granularity_column: str
custom_granularities: Optional[List[CustomGranularity]] = None


class Metadata(BaseParserModel):
Expand Down

0 comments on commit baea3df

Please sign in to comment.