Hi all, I have an issue where a value returned fro...
# singer-tap-development
j
Hi all, I have an issue where a value returned from a stream can either be an array or a string. Can't work out the correct syntax. I thought it would be a union. Has anyone else come across this?
Copy code
th.Property(
            "meta_data",
                th.ArrayType(th.ObjectType(
                    th.Property("id", th.NumberType),
                    th.Property("key", th.StringType),
                    th.Property("value", Union[th.StringType, th.ArrayType])
                ))
        ),