jam
09/28/2022, 7:03 PMFailed validating 'type' in schema['properties']['id']
where {'type': ['integer']}
And the value is '4'
. Do I need to convert values before they're sent to stdout?visch
09/28/2022, 7:54 PMjam
09/28/2022, 8:03 PMedgar_ramirez_mondragon
09/28/2022, 8:04 PMid
should be string, since that’s what the API sends anywayjam
09/28/2022, 8:08 PMid
was of type string, but was hoping to do the very basic transformation of converting it to an integer. I know this isn't best practice, so I'll convert my schema back to use stringjam
09/28/2022, 8:09 PMedgar_ramirez_mondragon
09/28/2022, 8:10 PMpost_process
in your stream class:
class MyStream(...):
def post_process(self, row, context):
row["id"] = int(row["id"])
return row
https://sdk.meltano.com/en/latest/classes/singer_sdk.Stream.html#singer_sdk.Stream.post_processjam
09/28/2022, 8:11 PM