Discussions

Ask a Question
Back to All

Empty work_schedule is [], but is type object

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"
  },