mark_estey
07/31/2023, 6:17 PMProperty('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?edgar_ramirez_mondragon
07/31/2023, 6:27 PMmark_estey
07/31/2023, 6:32 PMedgar_ramirez_mondragon
07/31/2023, 6:34 PMoneOf
but for anyOf
it does exactly what you describe: https://github.com/MeltanoLabs/target-postgres/blob/0c82a7f50b8b930b6624a80b04753e8e9105dd79/target_postgres/tests/test_standard_target.py#L345-L378
cc @vischmark_estey
07/31/2023, 6:42 PMvisch
07/31/2023, 6:46 PMtype: ["string", "integer", "null"]
See https://github.com/AutoIDM/tap-clickup/blob/main/tap_clickup/schemas/goal.json#L96-L98 for an example
I think it's easier to reason about.
OneOf
should be supported though as AnyOf
should be but that's what I do for taps as it seems to be the most "supported"mark_estey
07/31/2023, 6:51 PMvisch
07/31/2023, 6:52 PMvisch
07/31/2023, 6:53 PMmark_estey
07/31/2023, 6:57 PM