|
1212 | 1212 | }, |
1213 | 1213 | "delimiter": { |
1214 | 1214 | "type": "string", |
1215 | | - "enum": [ |
1216 | | - "new_line", |
1217 | | - "array" |
| 1215 | + "anyOf": [ |
| 1216 | + { "enum": ["new_line", "array"] }, |
| 1217 | + { "pattern": "^.$" } |
1218 | 1218 | ], |
1219 | | - "description": "Only for format = json. How multiple json documents are delimited within one file" |
| 1219 | + "description": "For JSON format, only 'new_line' or 'array' is allowed to indicate how multiple JSON documents are delimited. For CSV format, any single character can be used as the delimiter between columns. Only valid for CSV." |
| 1220 | + }, |
| 1221 | + "header": { |
| 1222 | + "type": "boolean", |
| 1223 | + "description": "Indicates whether the first row in the CSV file should be treated as column headers. Only valid for CSV." |
| 1224 | + }, |
| 1225 | + "escape": { |
| 1226 | + "type": "string", |
| 1227 | + "description": "Specifies the escape character used in the CSV file to include special characters in fields. Only valid for CSV." |
| 1228 | + }, |
| 1229 | + "all_varchar": { |
| 1230 | + "type": "boolean", |
| 1231 | + "description": "If true, all CSV columns are read as VARCHAR (strings), bypassing type inference. Only valid for CSV." |
| 1232 | + }, |
| 1233 | + "allow_quoted_nulls": { |
| 1234 | + "type": "boolean", |
| 1235 | + "description": "If true, quoted 'NULL' values in the CSV are interpreted as SQL NULL rather than as the string 'NULL'. Only valid for CSV." |
| 1236 | + }, |
| 1237 | + "dateformat": { |
| 1238 | + "type": "string", |
| 1239 | + "description": "A format string (e.g., '%Y-%m-%d') used to parse date values in the CSV. Only valid for CSV." |
| 1240 | + }, |
| 1241 | + "decimal_separator": { |
| 1242 | + "type": "string", |
| 1243 | + "description": "The character used as the decimal separator in numeric CSV values (e.g., '.' or ','). Only valid for CSV." |
| 1244 | + }, |
| 1245 | + "new_line": { |
| 1246 | + "type": "string", |
| 1247 | + "description": "The newline character(s) used in the CSV file (e.g., '\\n' or '\\r\\n'). Only valid for CSV." |
| 1248 | + }, |
| 1249 | + "timestampformat": { |
| 1250 | + "type": "string", |
| 1251 | + "description": "A format string (e.g., '%Y-%m-%d %H:%M:%S') used to parse timestamp values in the CSV. Only valid for CSV." |
| 1252 | + }, |
| 1253 | + "quote": { |
| 1254 | + "type": "string", |
| 1255 | + "description": "The character used for quoting fields in the CSV file (e.g., '\"'). Only valid for CSV." |
| 1256 | + } |
1220 | 1257 | } |
1221 | 1258 | }, |
1222 | 1259 | "required": [ |
|
1248 | 1285 | }, |
1249 | 1286 | "delimiter": { |
1250 | 1287 | "type": "string", |
1251 | | - "enum": [ |
1252 | | - "new_line", |
1253 | | - "array" |
| 1288 | + "anyOf": [ |
| 1289 | + { "enum": ["new_line", "array"] }, |
| 1290 | + { "pattern": "^.$" } |
1254 | 1291 | ], |
1255 | | - "description": "Only for format = json. How multiple json documents are delimited within one file" |
| 1292 | + "description": "For JSON format, only 'new_line' or 'array' is allowed to indicate how multiple JSON documents are delimited. For CSV format, any single character can be used as the delimiter between columns. Only valid for CSV." |
| 1293 | + }, |
| 1294 | + "header": { |
| 1295 | + "type": "boolean", |
| 1296 | + "description": "Indicates whether the first row in the CSV file should be treated as column headers. Only valid for CSV." |
| 1297 | + }, |
| 1298 | + "escape": { |
| 1299 | + "type": "string", |
| 1300 | + "description": "Specifies the escape character used in the CSV file to include special characters in fields. Only valid for CSV." |
| 1301 | + }, |
| 1302 | + "all_varchar": { |
| 1303 | + "type": "boolean", |
| 1304 | + "description": "If true, all CSV columns are read as VARCHAR (strings), bypassing type inference. Only valid for CSV." |
| 1305 | + }, |
| 1306 | + "allow_quoted_nulls": { |
| 1307 | + "type": "boolean", |
| 1308 | + "description": "If true, quoted 'NULL' values in the CSV are interpreted as SQL NULL rather than as the string 'NULL'. Only valid for CSV." |
| 1309 | + }, |
| 1310 | + "dateformat": { |
| 1311 | + "type": "string", |
| 1312 | + "description": "A format string (e.g., '%Y-%m-%d') used to parse date values in the CSV. Only valid for CSV." |
| 1313 | + }, |
| 1314 | + "decimal_separator": { |
| 1315 | + "type": "string", |
| 1316 | + "description": "The character used as the decimal separator in numeric CSV values (e.g., '.' or ','). Only valid for CSV." |
| 1317 | + }, |
| 1318 | + "new_line": { |
| 1319 | + "type": "string", |
| 1320 | + "description": "The newline character(s) used in the CSV file (e.g., '\\n' or '\\r\\n'). Only valid for CSV." |
| 1321 | + }, |
| 1322 | + "timestampformat": { |
| 1323 | + "type": "string", |
| 1324 | + "description": "A format string (e.g., '%Y-%m-%d %H:%M:%S') used to parse timestamp values in the CSV. Only valid for CSV." |
| 1325 | + }, |
| 1326 | + "quote": { |
| 1327 | + "type": "string", |
| 1328 | + "description": "The character used for quoting fields in the CSV file (e.g., '\"'). Only valid for CSV." |
1256 | 1329 | } |
1257 | 1330 | }, |
1258 | 1331 | "required": [ |
|
1336 | 1409 | }, |
1337 | 1410 | "delimiter": { |
1338 | 1411 | "type": "string", |
1339 | | - "enum": [ |
1340 | | - "new_line", |
1341 | | - "array" |
| 1412 | + "anyOf": [ |
| 1413 | + { "enum": ["new_line", "array"] }, |
| 1414 | + { "pattern": "^.$" } |
1342 | 1415 | ], |
1343 | | - "description": "Only for format = json. How multiple json documents are delimited within one file" |
| 1416 | + "description": "For JSON format, only 'new_line' or 'array' is allowed to indicate how multiple JSON documents are delimited. For CSV format, any single character can be used as the delimiter between columns. Only valid for CSV." |
| 1417 | + }, |
| 1418 | + "header": { |
| 1419 | + "type": "boolean", |
| 1420 | + "description": "Indicates whether the first row in the CSV file should be treated as column headers. Only valid for CSV." |
| 1421 | + }, |
| 1422 | + "escape": { |
| 1423 | + "type": "string", |
| 1424 | + "description": "Specifies the escape character used in the CSV file to include special characters in fields. Only valid for CSV." |
| 1425 | + }, |
| 1426 | + "all_varchar": { |
| 1427 | + "type": "boolean", |
| 1428 | + "description": "If true, all CSV columns are read as VARCHAR (strings), bypassing type inference. Only valid for CSV." |
| 1429 | + }, |
| 1430 | + "allow_quoted_nulls": { |
| 1431 | + "type": "boolean", |
| 1432 | + "description": "If true, quoted 'NULL' values in the CSV are interpreted as SQL NULL rather than as the string 'NULL'. Only valid for CSV." |
| 1433 | + }, |
| 1434 | + "dateformat": { |
| 1435 | + "type": "string", |
| 1436 | + "description": "A format string (e.g., '%Y-%m-%d') used to parse date values in the CSV. Only valid for CSV." |
| 1437 | + }, |
| 1438 | + "decimal_separator": { |
| 1439 | + "type": "string", |
| 1440 | + "description": "The character used as the decimal separator in numeric CSV values (e.g., '.' or ','). Only valid for CSV." |
| 1441 | + }, |
| 1442 | + "new_line": { |
| 1443 | + "type": "string", |
| 1444 | + "description": "The newline character(s) used in the CSV file (e.g., '\\n' or '\\r\\n'). Only valid for CSV." |
| 1445 | + }, |
| 1446 | + "timestampformat": { |
| 1447 | + "type": "string", |
| 1448 | + "description": "A format string (e.g., '%Y-%m-%d %H:%M:%S') used to parse timestamp values in the CSV. Only valid for CSV." |
| 1449 | + }, |
| 1450 | + "quote": { |
| 1451 | + "type": "string", |
| 1452 | + "description": "The character used for quoting fields in the CSV file (e.g., '\"'). Only valid for CSV." |
1344 | 1453 | } |
1345 | 1454 | }, |
1346 | 1455 | "required": [ |
|
0 commit comments