jonathan_sabbagh
06/13/2023, 9:35 PMyields
one field per row which is a dictionary (essentially the JSON returned by the API I am querying).
However, there doesn't seem to be a DictType
I can specify in the schema? How do I do this?visch
06/14/2023, 1:54 AMjonathan_sabbagh
06/14/2023, 1:03 PMExamples:
>>> t = ObjectType(
... Property("name", StringType, required=True),
... Property("age", IntegerType),
... Property("height", NumberType),
... additional_properties=False,
... )
jonathan_sabbagh
06/14/2023, 1:05 PM"payload": {
"name": ...,
"age": ...,
"dict_like_entry": {...},
...
}
visch
06/14/2023, 1:10 PMExamples:
>>> t = ObjectType(
... Property("stub", StringType)
... additional_properties=True,
... )
There's a class property somewhere that allows options for validation of objects at different levels, you'd have to find that too and turn it off I'd have to dig a bit