|
3 | 3 | "$id": "https://github.com/cloudquery/filetypes/v4/file-spec", |
4 | 4 | "$ref": "#/$defs/FileSpec", |
5 | 5 | "$defs": { |
| 6 | + "CSVSpec": { |
| 7 | + "properties": { |
| 8 | + "skip_header": { |
| 9 | + "type": "boolean", |
| 10 | + "description": "Specifies if the first line of a file should be the header.", |
| 11 | + "default": false |
| 12 | + }, |
| 13 | + "delimiter": { |
| 14 | + "type": "string", |
| 15 | + "pattern": "^.$", |
| 16 | + "description": "Character that will be used as the delimiter.", |
| 17 | + "default": "," |
| 18 | + } |
| 19 | + }, |
| 20 | + "additionalProperties": false, |
| 21 | + "type": "object", |
| 22 | + "description": "CloudQuery CSV file output spec." |
| 23 | + }, |
6 | 24 | "FileSpec": { |
7 | 25 | "oneOf": [ |
8 | 26 | { |
|
14 | 32 | "format_spec": { |
15 | 33 | "oneOf": [ |
16 | 34 | { |
17 | | - "$ref": "#/$defs/Spec" |
| 35 | + "$ref": "#/$defs/CSVSpec" |
18 | 36 | }, |
19 | 37 | { |
20 | 38 | "type": "null" |
|
32 | 50 | "format_spec": { |
33 | 51 | "oneOf": [ |
34 | 52 | { |
35 | | - "$ref": "#/$defs/Spec-1" |
| 53 | + "$ref": "#/$defs/JSONSpec" |
36 | 54 | }, |
37 | 55 | { |
38 | 56 | "type": "null" |
|
50 | 68 | "format_spec": { |
51 | 69 | "oneOf": [ |
52 | 70 | { |
53 | | - "$ref": "#/$defs/Spec-2" |
| 71 | + "$ref": "#/$defs/ParquetSpec" |
54 | 72 | }, |
55 | 73 | { |
56 | 74 | "type": "null" |
|
75 | 93 | { |
76 | 94 | "anyOf": [ |
77 | 95 | { |
78 | | - "$ref": "#/$defs/Spec" |
| 96 | + "$ref": "#/$defs/CSVSpec" |
79 | 97 | }, |
80 | 98 | { |
81 | | - "$ref": "#/$defs/Spec-1" |
| 99 | + "$ref": "#/$defs/JSONSpec" |
82 | 100 | }, |
83 | 101 | { |
84 | | - "$ref": "#/$defs/Spec-2" |
| 102 | + "$ref": "#/$defs/ParquetSpec" |
85 | 103 | } |
86 | 104 | ] |
87 | 105 | }, |
|
105 | 123 | "format" |
106 | 124 | ] |
107 | 125 | }, |
108 | | - "Spec": { |
109 | | - "properties": { |
110 | | - "skip_header": { |
111 | | - "type": "boolean", |
112 | | - "description": "Specifies if the first line of a file should be the header.", |
113 | | - "default": false |
114 | | - }, |
115 | | - "delimiter": { |
116 | | - "type": "string", |
117 | | - "pattern": "^.$", |
118 | | - "description": "Character that will be used as the delimiter.", |
119 | | - "default": "," |
120 | | - } |
121 | | - }, |
122 | | - "additionalProperties": false, |
123 | | - "type": "object", |
124 | | - "description": "CloudQuery CSV file output spec." |
125 | | - }, |
126 | | - "Spec-1": { |
| 126 | + "JSONSpec": { |
127 | 127 | "additionalProperties": false, |
128 | 128 | "type": "object", |
129 | 129 | "description": "CloudQuery JSON file output spec." |
130 | 130 | }, |
131 | | - "Spec-2": { |
| 131 | + "ParquetSpec": { |
132 | 132 | "additionalProperties": false, |
133 | 133 | "type": "object", |
134 | 134 | "description": "CloudQuery Parquet file output spec." |
|
0 commit comments