I was hoping someone would be able to help me with...
# getting-started
t
I was hoping someone would be able to help me with some schema syntax I am building a custom API rest tap that returns the below json
Copy code
{
  "Id": "psi119745",
  "dob": "20230718",
  "checks": [
    {
      "id": "8388609",
      "printableId": "80001",
      "marker": 638252212264995800,
      "total": 6,
      "netAmount": 5.22,
      "isClosed": true,
      "isEmpty": false,
      "isTraining": false
    }
  ]
}
in my streams.py I have started the schema
Copy code
schema = th.PropertiesList( 
            th.Property("Id", th.StringType),
            th.Property("dob",  th.StringType),
            th.Property("checks",th.ArrayType(th.StringType),),
            ).to_dict()
but I don't know how to complete the array checks nor could I find any examples in the documentation about Arrays. thank you for any help
e
Hi Tim 👋. You probably want the ObjectType for that:
Copy code
th.Property(
    "checks",
    th.ArrayType(
        th.ObjectType(
            th.Property("id", th.StringType),
            th.Property("printableId", th.StringType),
            ...
        ),
    ),
),
t
Hi Edgar thank you that worked