From d9dd764ab7d3e7fd3e07831ced1d5c45cb8ee389 Mon Sep 17 00:00:00 2001 From: Joel Labes Date: Mon, 2 Sep 2024 17:00:52 +1200 Subject: [PATCH] actually run codegen --- schemas/latest/dbt_yml_files-latest.json | 45 +++++++++++++++++------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/schemas/latest/dbt_yml_files-latest.json b/schemas/latest/dbt_yml_files-latest.json index 88b124c..3573188 100644 --- a/schemas/latest/dbt_yml_files-latest.json +++ b/schemas/latest/dbt_yml_files-latest.json @@ -615,6 +615,9 @@ "title": "Label", "type": "string" }, + "time_granularity": { + "$ref": "#/$defs/TimeGranularity" + }, "type": { "$ref": "#/$defs/ConversionMetricType" }, @@ -625,6 +628,7 @@ "required": [ "name", "label", + "time_granularity", "type", "type_params" ], @@ -744,6 +748,9 @@ "title": "Label", "type": "string" }, + "time_granularity": { + "$ref": "#/$defs/TimeGranularity" + }, "type": { "$ref": "#/$defs/CumulativeMetricType" }, @@ -754,6 +761,7 @@ "required": [ "name", "label", + "time_granularity", "type", "type_params" ], @@ -774,7 +782,7 @@ "grain_to_date": { "anyOf": [ { - "$ref": "#/$defs/GrainToDate" + "$ref": "#/$defs/TimeGranularity" } ], "default": "month" @@ -874,6 +882,9 @@ "title": "Label", "type": "string" }, + "time_granularity": { + "$ref": "#/$defs/TimeGranularity" + }, "type": { "$ref": "#/$defs/DerivedMetricType" }, @@ -884,6 +895,7 @@ "required": [ "name", "label", + "time_granularity", "type", "type_params" ], @@ -1251,17 +1263,6 @@ "title": "FreshnessRules", "type": "object" }, - "GrainToDate": { - "enum": [ - "day", - "week", - "month", - "quarter", - "year" - ], - "title": "GrainToDate", - "type": "string" - }, "Grants": { "additionalProperties": { "$ref": "#/$defs/StringOrArrayOfStrings" @@ -2184,6 +2185,9 @@ "title": "Label", "type": "string" }, + "time_granularity": { + "$ref": "#/$defs/TimeGranularity" + }, "type": { "$ref": "#/$defs/RatioMetricType" }, @@ -2194,6 +2198,7 @@ "required": [ "name", "label", + "time_granularity", "type", "type_params" ], @@ -2626,6 +2631,9 @@ "title": "Label", "type": "string" }, + "time_granularity": { + "$ref": "#/$defs/TimeGranularity" + }, "type": { "$ref": "#/$defs/SimpleMetricType" }, @@ -2636,6 +2644,7 @@ "required": [ "name", "label", + "time_granularity", "type", "type_params" ], @@ -3363,11 +3372,23 @@ }, "TimeGranularity": { "enum": [ + "NANOSECOND", + "MICROSECOND", + "MILLISECOND", + "SECOND", + "MINUTE", + "HOUR", "DAY", "WEEK", "MONTH", "QUARTER", "YEAR", + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", "day", "week", "month",