I have a JSON response which has a UUID key and an array of db entries as values. Trying to create a custom data type to make my life easier and get the error "UUID_VALUE: First character can't be a number.
1: it's a string, not a number
2: definitely valid JSON
Example data
{
"68aa18be-aed3-4bc3-bd43-eb9a2c96b23d": [
{
"id": "f4e764ae-923a-4c4e-98e2-e7e743d088f6",
"logGroupId": "68aa18be-aed3-4bc3-bd43-eb9a2c96b23d",
"name": "Check Oil Level",
"type": "CHECK",
"stepInstructions": "Check the oil level.",
"stepNumber": 1,
"visualURL": null,
"textInput": null,
"checkResult": null,
"note": null,
"status": "PENDING",
"createdAt": "2024-07-19T18:12:14.110Z",
"updatedAt": "2024-07-19T18:12:14.110Z",
"userId": "1af2161a-55cd-4504-8e38-f7aa3376db6c",
"assetId": "5ee3a6d2-fc9c-4862-aa51-6eb90c481f45",
"inspectionRoutineId": "3113fe38-2761-4a26-b83e-bdd66da54097"
},
{
"id": "9d3098c4-7896-4ddf-85fe-0f8fbfd1db93",
"logGroupId": "68aa18be-aed3-4bc3-bd43-eb9a2c96b23d",
"name": "Drivers Side Photo",
"type": "PHOTO",
"stepInstructions": "Take a picture of the drivers side of the vehicle",
"stepNumber": 2,
"visualURL": null,
"textInput": null,
"checkResult": null,
"note": null,
"status": "PENDING",
"createdAt": "2024-07-19T18:12:14.110Z",
"updatedAt": "2024-07-19T18:12:14.110Z",
"userId": "1af2161a-55cd-4504-8e38-f7aa3376db6c",
"assetId": "5ee3a6d2-fc9c-4862-aa51-6eb90c481f45",
"inspectionRoutineId": "c2e053b0-43a7-4d69-8b85-51ffaec4eff8"
},
// more stuff
]
// next uuid->records...
}