rithesh_s
06/21/2021, 1:03 PM... 'user': {'id': 1, 'name': 'Rithesh S', 'firstName': 'Rithesh', 'lastName': 'S'} ...
aaronsteers
06/21/2021, 4:19 PMStream.schema_filepath
. The second option is to set a Python dictionary object in Stream.schema
which contains the JSON Schema definition. My own personal preference is to use the second option, using the helper classes from the SDK, so the entire JSON schema structure can be declared in Python. Here's an example of a very complex structure being defined in Python with the helper classes: https://github.com/dataops-tk/tap-powerbi-metadata/blob/main/tap_powerbi_metadata/streams.py#L119
Note at the end of that declaration is a .to_dict()
call which converts the large constructed object back to native python dictionary.rithesh_s
06/21/2021, 4:59 PM