jazzy
09/29/2021, 12:03 PMth.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])
))
),
edgar_ramirez_mondragon
09/29/2021, 2:06 PManyOf
. However, the SDK doesn't support using Python's built-in typing mechanisms (e.g. Union
) to build the JSON Schema, so it relies entirely on its own type definitions and currently there is no way of declaring an anyOf
type in there.jazzy
09/29/2021, 2:10 PMedgar_ramirez_mondragon
09/29/2021, 2:54 PM{
"type": "object",
"properties": {
"value": {
"anyOf": [
{"type": "string"},
{"type": "array"},
]
}
}
}
aaronsteers
09/29/2021, 4:46 PMpost_process()
method you can conform a single string into an "array of 1 item"?aaronsteers
09/29/2021, 4:47 PMjazzy
09/30/2021, 7:59 AM