Discussions
Wrong Schema for the Endpoint "/company/absence-periods" GET
about 1 year ago by Michael Diesen
Hello,
the example shows this (and it is what the actual response look like):
absence_type:
type: AbsenceType
attributes:
id: "9bba303f-0fbc-4514-9958-0befa21923fb"
name: "Absence Type Name"
but the schema for that is this:
absence_type:
$ref: "#/components/schemas/AbsenceType"
which should look like this:
AbsenceType:
type: object
required:
- id
properties:
id:
type: string
format: uuid
example: 61fe126b-a7b3-449a-b5ee-3865a6fcc546
name:
type: string
example: Absence Type Name
time_off_type_id:
type: integer
example: 1
This is wrong. Can you please fix this.