|
1163 | 1163 | "title": "Normalize Name", |
1164 | 1164 | "default": true |
1165 | 1165 | }, |
1166 | | - "snapshots": { |
1167 | | - "items": { "$ref": "#/components/schemas/SnapshotTableInfo" }, |
1168 | | - "type": "array", |
1169 | | - "title": "Snapshots" |
1170 | | - }, |
| 1166 | + "snapshots": { "items": {}, "type": "array", "title": "Snapshots" }, |
1171 | 1167 | "start_at": { |
1172 | 1168 | "anyOf": [ |
1173 | 1169 | { "type": "string", "format": "date" }, |
|
1203 | 1199 | "title": "Finalized Ts" |
1204 | 1200 | }, |
1205 | 1201 | "promoted_snapshot_ids": { |
1206 | | - "anyOf": [ |
1207 | | - { |
1208 | | - "items": { "$ref": "#/components/schemas/SnapshotId" }, |
1209 | | - "type": "array" |
1210 | | - }, |
1211 | | - { "type": "null" } |
1212 | | - ], |
| 1202 | + "anyOf": [{ "items": {}, "type": "array" }, { "type": "null" }], |
1213 | 1203 | "title": "Promoted Snapshot Ids" |
1214 | 1204 | }, |
1215 | 1205 | "previous_finalized_snapshots": { |
1216 | | - "anyOf": [ |
1217 | | - { |
1218 | | - "items": { "$ref": "#/components/schemas/SnapshotTableInfo" }, |
1219 | | - "type": "array" |
1220 | | - }, |
1221 | | - { "type": "null" } |
1222 | | - ], |
| 1206 | + "anyOf": [{ "items": {}, "type": "array" }, { "type": "null" }], |
1223 | 1207 | "title": "Previous Finalized Snapshots" |
1224 | 1208 | } |
1225 | 1209 | }, |
|
1550 | 1534 | "type": "object", |
1551 | 1535 | "title": "ModelDetails" |
1552 | 1536 | }, |
1553 | | - "ModelKindName": { |
1554 | | - "type": "string", |
1555 | | - "enum": [ |
1556 | | - "INCREMENTAL_BY_TIME_RANGE", |
1557 | | - "INCREMENTAL_BY_UNIQUE_KEY", |
1558 | | - "INCREMENTAL_BY_PARTITION", |
1559 | | - "INCREMENTAL_UNMANAGED", |
1560 | | - "FULL", |
1561 | | - "SCD_TYPE_2", |
1562 | | - "SCD_TYPE_2_BY_TIME", |
1563 | | - "SCD_TYPE_2_BY_COLUMN", |
1564 | | - "VIEW", |
1565 | | - "EMBEDDED", |
1566 | | - "SEED", |
1567 | | - "EXTERNAL" |
1568 | | - ], |
1569 | | - "title": "ModelKindName", |
1570 | | - "description": "The kind of model, determining how this data is computed and stored in the warehouse." |
1571 | | - }, |
1572 | 1537 | "ModelType": { |
1573 | 1538 | "type": "string", |
1574 | 1539 | "enum": ["python", "sql", "seed", "external"], |
|
2140 | 2105 | "title": "SnapshotChangeCategory", |
2141 | 2106 | "description": "Values are ordered by decreasing severity and that ordering is required.\n\nBREAKING: The change requires that snapshot modified and downstream dependencies be rebuilt\nNON_BREAKING: The change requires that only the snapshot modified be rebuilt\nFORWARD_ONLY: The change requires no rebuilding\nINDIRECT_BREAKING: The change was caused indirectly and is breaking.\nINDIRECT_NON_BREAKING: The change was caused indirectly by a non-breaking change.\nMETADATA: The change was caused by a metadata update." |
2142 | 2107 | }, |
2143 | | - "SnapshotDataVersion": { |
2144 | | - "properties": { |
2145 | | - "fingerprint": { "$ref": "#/components/schemas/SnapshotFingerprint" }, |
2146 | | - "version": { "type": "string", "title": "Version" }, |
2147 | | - "temp_version": { |
2148 | | - "anyOf": [{ "type": "string" }, { "type": "null" }], |
2149 | | - "title": "Temp Version" |
2150 | | - }, |
2151 | | - "change_category": { |
2152 | | - "anyOf": [ |
2153 | | - { "$ref": "#/components/schemas/SnapshotChangeCategory" }, |
2154 | | - { "type": "null" } |
2155 | | - ] |
2156 | | - }, |
2157 | | - "physical_schema": { |
2158 | | - "anyOf": [{ "type": "string" }, { "type": "null" }], |
2159 | | - "title": "Physical Schema" |
2160 | | - } |
2161 | | - }, |
2162 | | - "additionalProperties": false, |
2163 | | - "type": "object", |
2164 | | - "required": ["fingerprint", "version"], |
2165 | | - "title": "SnapshotDataVersion" |
2166 | | - }, |
2167 | | - "SnapshotFingerprint": { |
2168 | | - "properties": { |
2169 | | - "data_hash": { "type": "string", "title": "Data Hash" }, |
2170 | | - "metadata_hash": { "type": "string", "title": "Metadata Hash" }, |
2171 | | - "parent_data_hash": { |
2172 | | - "type": "string", |
2173 | | - "title": "Parent Data Hash", |
2174 | | - "default": "0" |
2175 | | - }, |
2176 | | - "parent_metadata_hash": { |
2177 | | - "type": "string", |
2178 | | - "title": "Parent Metadata Hash", |
2179 | | - "default": "0" |
2180 | | - } |
2181 | | - }, |
2182 | | - "additionalProperties": false, |
2183 | | - "type": "object", |
2184 | | - "required": ["data_hash", "metadata_hash"], |
2185 | | - "title": "SnapshotFingerprint" |
2186 | | - }, |
2187 | | - "SnapshotId": { |
2188 | | - "properties": { |
2189 | | - "name": { "type": "string", "title": "Name" }, |
2190 | | - "identifier": { "type": "string", "title": "Identifier" } |
2191 | | - }, |
2192 | | - "additionalProperties": false, |
2193 | | - "type": "object", |
2194 | | - "required": ["name", "identifier"], |
2195 | | - "title": "SnapshotId" |
2196 | | - }, |
2197 | | - "SnapshotTableInfo": { |
2198 | | - "properties": { |
2199 | | - "name": { "type": "string", "title": "Name" }, |
2200 | | - "temp_version": { |
2201 | | - "anyOf": [{ "type": "string" }, { "type": "null" }], |
2202 | | - "title": "Temp Version" |
2203 | | - }, |
2204 | | - "change_category": { |
2205 | | - "anyOf": [ |
2206 | | - { "$ref": "#/components/schemas/SnapshotChangeCategory" }, |
2207 | | - { "type": "null" } |
2208 | | - ] |
2209 | | - }, |
2210 | | - "fingerprint": { "$ref": "#/components/schemas/SnapshotFingerprint" }, |
2211 | | - "previous_versions": { |
2212 | | - "items": { "$ref": "#/components/schemas/SnapshotDataVersion" }, |
2213 | | - "type": "array", |
2214 | | - "title": "Previous Versions", |
2215 | | - "default": [] |
2216 | | - }, |
2217 | | - "base_table_name_override": { |
2218 | | - "anyOf": [{ "type": "string" }, { "type": "null" }], |
2219 | | - "title": "Base Table Name Override" |
2220 | | - }, |
2221 | | - "version": { "type": "string", "title": "Version" }, |
2222 | | - "physical_schema": { "type": "string", "title": "Physical Schema" }, |
2223 | | - "parents": { |
2224 | | - "items": { "$ref": "#/components/schemas/SnapshotId" }, |
2225 | | - "type": "array", |
2226 | | - "title": "Parents" |
2227 | | - }, |
2228 | | - "kind_name": { |
2229 | | - "anyOf": [ |
2230 | | - { "$ref": "#/components/schemas/ModelKindName" }, |
2231 | | - { "type": "null" } |
2232 | | - ] |
2233 | | - }, |
2234 | | - "node_type": { |
2235 | | - "allOf": [{ "$ref": "#/components/schemas/NodeType" }], |
2236 | | - "default": "model" |
2237 | | - } |
2238 | | - }, |
2239 | | - "additionalProperties": false, |
2240 | | - "type": "object", |
2241 | | - "required": [ |
2242 | | - "name", |
2243 | | - "fingerprint", |
2244 | | - "version", |
2245 | | - "physical_schema", |
2246 | | - "parents" |
2247 | | - ], |
2248 | | - "title": "SnapshotTableInfo" |
2249 | | - }, |
2250 | 2108 | "Status": { |
2251 | 2109 | "type": "string", |
2252 | 2110 | "enum": ["init", "success", "fail"], |
|
0 commit comments