https://linen.dev logo
#singer-tap-development
Title
# singer-tap-development
m

mark_estey

07/31/2023, 6:17 PM
I'm try to fix the schema for a tap I'm working on, but I have trouble with a property where the API sometimes returns a numeric value but sometimes returns a string value depending on the row. I tried using the "OneOf" type like this:
Property('step_number', OneOf(IntegerType, StringType))
but then I get this error on run: `ValueError: Could not append type because the JSON schema for the dictionary
{'oneOf': [{'type': ['integer']}, {'type': ['string']}]}
appears to be invalid.` What's the best way to handle this type of property? Should I use a transformation step to coerce the numeric values to strings and just use a StringType in the schema?