I have a JSON data which is getting generated through python scripts as below.
JSON:
{
"name":"abc"
"insrt_dt": datetime.datetime(2020,12,15,18,35,30,31547}
"demand_dt": Timestamp('2014-05-09 00:00:00')
}
I want to do schema validation before inserting it into Mongo database.
I am able to handle "name" field , but not able to handle "insrt_dt" & "demand_dt" fields. for name: it is working as per syntax.
json schema date-time does not check correctly.
but unable to decide type and format for "insrt_dt" & "demand_dt"