Skip to content

Commit 5a80777

Browse files
fix: Support __NULL__ in __else__ values (#104)
1 parent 8329def commit 5a80777

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

meltano.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ plugins:
5353
animals:
5454
id: id
5555
description: description
56-
__else__: null
56+
__else__: __NULL__
5757
environments:
5858
- name: dev
5959
config:

meltano_map_transform/mapper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ class StreamTransform(InlineMapper):
2626
"__filter__": {"type": ["string", "null"]},
2727
"__source__": {"type": ["string", "null"]},
2828
"__alias__": {"type": ["string", "null"]},
29-
"__else__": {"type": ["null"]},
29+
"__else__": {
30+
"type": ["string", "null"],
31+
"enum": [None, "__NULL__"],
32+
},
3033
"__key_properties__": {
3134
"type": ["array", "null"],
3235
"items": {"type": "string"},

0 commit comments

Comments
 (0)