Hi! I am trying to create a custom tap that pulls ...
# troubleshooting
g
Hi! I am trying to create a custom tap that pulls from an API using the sdk. I am currently having an issue when a string field is being interpreted as a decimal preventing the run. I am currently defining the field as
th.StringType
Any help would be great!
m
Have you checked the actual responses? I came across an API that was sometimes returning strings but also sometimes returning numeric data for the same field, so I had to allow both in the tap schema like this:
CustomType({"type": ["integer", "string", "null"]})
g
Exactly what I am after, just couldn’t figure out the syntax. Thank you!