josh_lloyd
02/18/2022, 9:45 PMth.ObjectType
or a th.StringType
. How do I get a th.Property
to accept that type?aaronsteers
02/18/2022, 9:49 PMth.CustomType()
with any arbitrary JSON Schema definition, and then wrap that in a Property
declaration.josh_lloyd
02/18/2022, 9:51 PMstream_properties.append(
th.Property(
"schema",
th.CustomType({"anyOf": [{"type": "string"}, {"type": "null"}, {"type:": "object"}]}),
required=False,
description="A valid Singer schema or a path-like string that provides "
"the path to a `.json` file that contains a valid Singer "
"schema. If provided, the schema will not be inferred from "
"the results of an api call."
),
)
aaronsteers
02/18/2022, 9:53 PMaaronsteers
02/18/2022, 9:54 PMaaronsteers
02/18/2022, 9:55 PM