|
11 | 11 | "content": { |
12 | 12 | "application/json": { |
13 | 13 | "schema": { |
14 | | - "allOf": [ |
15 | | - { |
16 | | - "$ref": "#/components/schemas/Body_initiate_apply_api_commands_apply_post" |
17 | | - } |
18 | | - ], |
19 | | - "title": "Body" |
| 14 | + "$ref": "#/components/schemas/Body_initiate_apply_api_commands_apply_post" |
20 | 15 | } |
21 | 16 | } |
22 | 17 | } |
|
154 | 149 | } |
155 | 150 | }, |
156 | 151 | { |
157 | | - "name": "verbose", |
| 152 | + "name": "verbosity", |
158 | 153 | "in": "query", |
159 | 154 | "required": false, |
160 | | - "schema": { |
161 | | - "type": "boolean", |
162 | | - "default": false, |
163 | | - "title": "Verbose" |
164 | | - } |
| 155 | + "schema": { "$ref": "#/components/schemas/Verbosity", "default": 0 } |
165 | 156 | } |
166 | 157 | ], |
167 | 158 | "responses": { |
|
249 | 240 | "content": { |
250 | 241 | "application/json": { |
251 | 242 | "schema": { |
252 | | - "allOf": [ |
253 | | - { |
254 | | - "$ref": "#/components/schemas/Body_write_file_api_files__path__post" |
255 | | - } |
256 | | - ], |
257 | | - "title": "Body" |
| 243 | + "$ref": "#/components/schemas/Body_write_file_api_files__path__post" |
258 | 244 | } |
259 | 245 | } |
260 | 246 | } |
|
336 | 322 | "content": { |
337 | 323 | "application/json": { |
338 | 324 | "schema": { |
339 | | - "allOf": [ |
340 | | - { |
341 | | - "$ref": "#/components/schemas/Body_write_directory_api_directories__path__post" |
342 | | - } |
343 | | - ], |
344 | | - "title": "Body" |
| 325 | + "$ref": "#/components/schemas/Body_write_directory_api_directories__path__post" |
345 | 326 | } |
346 | 327 | } |
347 | 328 | } |
|
402 | 383 | "content": { |
403 | 384 | "application/json": { |
404 | 385 | "schema": { |
405 | | - "allOf": [ |
406 | | - { |
407 | | - "$ref": "#/components/schemas/Body_initiate_plan_api_plan_post" |
408 | | - } |
409 | | - ], |
410 | | - "title": "Body" |
| 386 | + "$ref": "#/components/schemas/Body_initiate_plan_api_plan_post" |
411 | 387 | } |
412 | 388 | } |
413 | 389 | } |
|
782 | 758 | "description": "Successful Response", |
783 | 759 | "content": { |
784 | 760 | "application/json": { |
785 | | - "schema": { "$ref": "#/components/schemas/TableDiff" } |
| 761 | + "schema": { |
| 762 | + "anyOf": [ |
| 763 | + { "$ref": "#/components/schemas/TableDiff" }, |
| 764 | + { "type": "null" } |
| 765 | + ], |
| 766 | + "title": "Response Get Table Diff Api Table Diff Get" |
| 767 | + } |
786 | 768 | } |
787 | 769 | } |
788 | 770 | }, |
|
890 | 872 | "name": { "type": "string", "title": "Name" }, |
891 | 873 | "view_name": { "type": "string", "title": "View Name" }, |
892 | 874 | "node_type": { |
893 | | - "allOf": [{ "$ref": "#/components/schemas/NodeType" }], |
| 875 | + "$ref": "#/components/schemas/NodeType", |
894 | 876 | "default": "model" |
895 | 877 | }, |
896 | 878 | "parents": { |
|
917 | 899 | "name": { "type": "string", "title": "Name" }, |
918 | 900 | "view_name": { "type": "string", "title": "View Name" }, |
919 | 901 | "node_type": { |
920 | | - "allOf": [{ "$ref": "#/components/schemas/NodeType" }], |
| 902 | + "$ref": "#/components/schemas/NodeType", |
921 | 903 | "default": "model" |
922 | 904 | }, |
923 | 905 | "parents": { |
|
1041 | 1023 | "name": { "type": "string", "title": "Name" }, |
1042 | 1024 | "view_name": { "type": "string", "title": "View Name" }, |
1043 | 1025 | "node_type": { |
1044 | | - "allOf": [{ "$ref": "#/components/schemas/NodeType" }], |
| 1026 | + "$ref": "#/components/schemas/NodeType", |
1045 | 1027 | "default": "model" |
1046 | 1028 | }, |
1047 | 1029 | "parents": { |
|
1081 | 1063 | "name": { "type": "string", "title": "Name" }, |
1082 | 1064 | "view_name": { "type": "string", "title": "View Name" }, |
1083 | 1065 | "node_type": { |
1084 | | - "allOf": [{ "$ref": "#/components/schemas/NodeType" }], |
| 1066 | + "$ref": "#/components/schemas/NodeType", |
1085 | 1067 | "default": "model" |
1086 | 1068 | }, |
1087 | 1069 | "parents": { |
|
1102 | 1084 | "name": { "type": "string", "title": "Name" }, |
1103 | 1085 | "view_name": { "type": "string", "title": "View Name" }, |
1104 | 1086 | "node_type": { |
1105 | | - "allOf": [{ "$ref": "#/components/schemas/NodeType" }], |
| 1087 | + "$ref": "#/components/schemas/NodeType", |
1106 | 1088 | "default": "model" |
1107 | 1089 | }, |
1108 | 1090 | "parents": { |
|
1157 | 1139 | "Environment": { |
1158 | 1140 | "properties": { |
1159 | 1141 | "name": { "type": "string", "title": "Name", "default": "prod" }, |
1160 | | - "suffix_target": { |
1161 | | - "allOf": [ |
1162 | | - { "$ref": "#/components/schemas/EnvironmentSuffixTarget" } |
1163 | | - ], |
1164 | | - "default": "schema" |
1165 | | - }, |
1166 | | - "catalog_name_override": { |
1167 | | - "anyOf": [{ "type": "string" }, { "type": "null" }], |
1168 | | - "title": "Catalog Name Override" |
1169 | | - }, |
1170 | | - "normalize_name": { |
1171 | | - "type": "boolean", |
1172 | | - "title": "Normalize Name", |
1173 | | - "default": true |
1174 | | - }, |
1175 | | - "snapshots": { "items": {}, "type": "array", "title": "Snapshots" }, |
1176 | 1142 | "start_at": { |
1177 | 1143 | "anyOf": [ |
1178 | 1144 | { "type": "string", "format": "date" }, |
|
1207 | 1173 | "anyOf": [{ "type": "integer" }, { "type": "null" }], |
1208 | 1174 | "title": "Finalized Ts" |
1209 | 1175 | }, |
| 1176 | + "suffix_target": { |
| 1177 | + "$ref": "#/components/schemas/EnvironmentSuffixTarget", |
| 1178 | + "default": "schema" |
| 1179 | + }, |
| 1180 | + "catalog_name_override": { |
| 1181 | + "anyOf": [{ "type": "string" }, { "type": "null" }], |
| 1182 | + "title": "Catalog Name Override" |
| 1183 | + }, |
| 1184 | + "normalize_name": { |
| 1185 | + "type": "boolean", |
| 1186 | + "title": "Normalize Name", |
| 1187 | + "default": true |
| 1188 | + }, |
| 1189 | + "gateway_managed": { |
| 1190 | + "type": "boolean", |
| 1191 | + "title": "Gateway Managed", |
| 1192 | + "default": false |
| 1193 | + }, |
| 1194 | + "snapshots": { "items": {}, "type": "array", "title": "Snapshots" }, |
1210 | 1195 | "promoted_snapshot_ids": { |
1211 | 1196 | "anyOf": [{ "items": {}, "type": "array" }, { "type": "null" }], |
1212 | 1197 | "title": "Promoted Snapshot Ids" |
|
1224 | 1209 | }, |
1225 | 1210 | "additionalProperties": false, |
1226 | 1211 | "type": "object", |
1227 | | - "required": ["snapshots", "start_at", "plan_id"], |
| 1212 | + "required": ["start_at", "plan_id", "snapshots"], |
1228 | 1213 | "title": "Environment", |
1229 | | - "description": "Represents an isolated environment.\n\nEnvironments are isolated workspaces that hold pointers to physical tables.\n\nArgs:\n snapshots: The snapshots that are part of this environment.\n start_at: The start time of the environment.\n end_at: The end time of the environment.\n plan_id: The ID of the plan that last updated this environment.\n previous_plan_id: The ID of the previous plan that updated this environment.\n expiration_ts: The timestamp when this environment will expire.\n finalized_ts: The timestamp when this environment was finalized.\n promoted_snapshot_ids: The IDs of the snapshots that are promoted in this environment\n (i.e. for which the views are created). If not specified, all snapshots are promoted.\n previous_finalized_snapshots: Snapshots that were part of this environment last time it was finalized.\n requirements: A mapping of library versions for all the snapshots in this environment." |
| 1214 | + "description": "Represents an isolated environment.\n\nEnvironments are isolated workspaces that hold pointers to physical tables.\n\nArgs:\n snapshots: The snapshots that are part of this environment.\n promoted_snapshot_ids: The IDs of the snapshots that are promoted in this environment\n (i.e. for which the views are created). If not specified, all snapshots are promoted.\n previous_finalized_snapshots: Snapshots that were part of this environment last time it was finalized.\n requirements: A mapping of library versions for all the snapshots in this environment." |
1230 | 1215 | }, |
1231 | 1216 | "EnvironmentSuffixTarget": { |
1232 | 1217 | "type": "string", |
|
1398 | 1383 | "name": { "type": "string", "title": "Name" }, |
1399 | 1384 | "fqn": { "type": "string", "title": "Fqn" }, |
1400 | 1385 | "path": { "type": "string", "title": "Path" }, |
| 1386 | + "full_path": { "type": "string", "title": "Full Path" }, |
1401 | 1387 | "dialect": { "type": "string", "title": "Dialect" }, |
1402 | 1388 | "type": { "$ref": "#/components/schemas/ModelType" }, |
1403 | 1389 | "columns": { |
|
1435 | 1421 | "name", |
1436 | 1422 | "fqn", |
1437 | 1423 | "path", |
| 1424 | + "full_path", |
1438 | 1425 | "dialect", |
1439 | 1426 | "type", |
1440 | 1427 | "columns", |
|
2061 | 2048 | "type": "object", |
2062 | 2049 | "title": "Stats" |
2063 | 2050 | }, |
2064 | | - "sample": { "type": "object", "title": "Sample" }, |
| 2051 | + "sample": { |
| 2052 | + "additionalProperties": true, |
| 2053 | + "type": "object", |
| 2054 | + "title": "Sample" |
| 2055 | + }, |
2065 | 2056 | "source_count": { "type": "integer", "title": "Source Count" }, |
2066 | 2057 | "target_count": { "type": "integer", "title": "Target Count" }, |
2067 | 2058 | "count_pct_change": { "type": "number", "title": "Count Pct Change" } |
|
2213 | 2204 | "TrackableMeta": { |
2214 | 2205 | "properties": { |
2215 | 2206 | "status": { |
2216 | | - "allOf": [{ "$ref": "#/components/schemas/Status" }], |
| 2207 | + "$ref": "#/components/schemas/Status", |
2217 | 2208 | "default": "init" |
2218 | 2209 | }, |
2219 | 2210 | "start": { "type": "integer", "title": "Start" }, |
|
2240 | 2231 | "type": "object", |
2241 | 2232 | "required": ["loc", "msg", "type"], |
2242 | 2233 | "title": "ValidationError" |
| 2234 | + }, |
| 2235 | + "Verbosity": { |
| 2236 | + "type": "integer", |
| 2237 | + "enum": [0, 1, 2], |
| 2238 | + "title": "Verbosity", |
| 2239 | + "description": "Verbosity levels for SQLMesh output." |
2243 | 2240 | } |
2244 | 2241 | } |
2245 | 2242 | } |
|
0 commit comments