Skip to content

Commit 12a31fc

Browse files
committed
fix: 🐛 Schema flattening issues
1 parent deb17e0 commit 12a31fc

File tree

7 files changed

+4270
-21728
lines changed

7 files changed

+4270
-21728
lines changed

meltano.yml

+10
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,13 @@ plugins:
3232
- name: target-jsonl
3333
variant: andyh1203
3434
pip_url: target-jsonl
35+
- name: target-csv
36+
variant: meltanolabs
37+
pip_url: git+https://github.com/MeltanoLabs/target-csv.git
38+
config:
39+
add_record_metadata: true
40+
flattening_enabled: true
41+
flattening_max_depth: 5
42+
- name: target-redshift
43+
variant: ticketswap
44+
pip_url: git+https://github.com/TicketSwap/target-redshift.git

tap_dbt_artifacts/schemas/catalog.schema.json

+6-54
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,11 @@
22
"type": "object",
33
"title": "CatalogArtifact",
44
"properties": {
5-
"artifact_type": {
6-
"const": "catalog"
7-
},
85
"invocation_id": {
9-
"anyOf": [
10-
{
11-
"type": "string"
12-
},
13-
{
14-
"type": "null"
15-
}
16-
]
6+
"type": ["string", "null"]
177
},
188
"unique_id": {
19-
"anyOf": [
20-
{
21-
"type": "string"
22-
},
23-
{
24-
"type": "null"
25-
}
26-
]
9+
"type": ["string", "null"]
2710
},
2811
"generated_at": {
2912
"type": "string",
@@ -198,14 +181,7 @@
198181
}
199182
},
200183
"unique_id": {
201-
"anyOf": [
202-
{
203-
"type": "string"
204-
},
205-
{
206-
"type": "null"
207-
}
208-
],
184+
"type": ["string", "null"],
209185
"default": null
210186
}
211187
},
@@ -345,41 +321,17 @@
345321
}
346322
},
347323
"unique_id": {
348-
"anyOf": [
349-
{
350-
"type": "string"
351-
},
352-
{
353-
"type": "null"
354-
}
355-
],
324+
"type": ["string", "null"],
356325
"default": null
357326
}
358327
},
359328
"additionalProperties": false,
360329
"required": ["metadata", "columns", "stats"]
361330
},
362331
"errors": {
363-
"anyOf": [
364-
{
365-
"type": "array",
366-
"items": {
367-
"type": "string"
368-
}
369-
},
370-
{
371-
"type": "null"
372-
}
373-
],
374-
"default": null
332+
"type": ["array", "null"]
375333
}
376334
},
377335
"additionalProperties": false,
378-
"required": [
379-
"artifact_type",
380-
"invocation_id",
381-
"unique_id",
382-
"generated_at",
383-
"metadata"
384-
]
336+
"required": ["invocation_id", "unique_id", "generated_at"]
385337
}

0 commit comments

Comments
 (0)