-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.json
167 lines (167 loc) · 3.89 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/cloudquery/filetypes/v4/file-spec",
"$ref": "#/$defs/FileSpec",
"$defs": {
"CSVSpec": {
"properties": {
"skip_header": {
"type": "boolean",
"description": "Specifies if the first line of a file should be the header.",
"default": false
},
"delimiter": {
"type": "string",
"pattern": "^.$",
"description": "Character that will be used as the delimiter.",
"default": ","
}
},
"additionalProperties": false,
"type": "object",
"description": "CloudQuery CSV file output spec."
},
"FileSpec": {
"oneOf": [
{
"properties": {
"format": {
"type": "string",
"const": "csv"
},
"format_spec": {
"oneOf": [
{
"$ref": "#/$defs/CSVSpec"
},
{
"type": "null"
}
]
}
}
},
{
"properties": {
"format": {
"type": "string",
"const": "json"
},
"format_spec": {
"oneOf": [
{
"$ref": "#/$defs/JSONSpec"
},
{
"type": "null"
}
]
}
}
},
{
"properties": {
"format": {
"type": "string",
"const": "parquet"
},
"format_spec": {
"oneOf": [
{
"$ref": "#/$defs/ParquetSpec"
},
{
"type": "null"
}
]
}
}
}
],
"properties": {
"format": {
"type": "string",
"enum": [
"csv",
"json",
"parquet"
],
"description": "Output format."
},
"format_spec": {
"oneOf": [
{
"anyOf": [
{
"$ref": "#/$defs/CSVSpec"
},
{
"$ref": "#/$defs/JSONSpec"
},
{
"$ref": "#/$defs/ParquetSpec"
}
]
},
{
"type": "null"
}
]
},
"compression": {
"type": "string",
"enum": [
"",
"gzip"
],
"description": "Compression type.\nEmpty or missing stands for no compression."
}
},
"additionalProperties": false,
"type": "object",
"required": [
"format"
]
},
"JSONSpec": {
"additionalProperties": false,
"type": "object",
"description": "CloudQuery JSON file output spec."
},
"ParquetSpec": {
"properties": {
"version": {
"type": "string",
"enum": [
"v1.0",
"v2.4",
"v2.6",
"v2Latest"
],
"description": "Parquet format version",
"default": "v2Latest"
},
"root_repetition": {
"type": "string",
"enum": [
"undefined",
"required",
"optional",
"repeated"
],
"description": "Root repetition",
"default": "repeated"
},
"max_row_group_length": {
"type": "integer",
"minimum": 0,
"description": "Max row group length",
"default": 134217728
}
},
"additionalProperties": false,
"type": "object",
"description": "CloudQuery Parquet file output spec."
}
}
}