Discussions
Empty work_schedule is [], but is type object
about 1 year ago by Michael Diesen
In case no work_schedule is set, the API returns:
"work_schedule": {
"label": "Work schedule",
"value": [],
"type": "standard",
"universal_id": "work_schedule"
},
But:
WorkSchedule:
type: object
properties:
label:
example: WorkSchedule
value:
type: object
Value is of type object, so the correct response should be:
"work_schedule": {
"label": "Work schedule",
"value": {},
"type": "standard",
"universal_id": "work_schedule"
},