Skip to content

Commit

Permalink
Merge pull request #259 from godatadriven/support-timespine-custom-gran
Browse files Browse the repository at this point in the history
Supporting custom granularity in time_spine
  • Loading branch information
pgoslatara authored Sep 25, 2024
2 parents 5628bab + baea3df commit 84cfa7a
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 84cfa7a

Please sign in to comment.