From 2ba7c31af4a5a7fd82e90ae17691accbe9090ee6 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Sat, 5 Mar 2022 09:39:30 +0100 Subject: [PATCH 1/8] Missing types in department --- personio-personnel-data-api-oa3.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index b0e5205..9c84636 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -2480,6 +2480,7 @@ components: type: object properties: label: + type: string example: Department value: type: object @@ -2495,6 +2496,7 @@ components: type: $ref: '#/components/schemas/TypeEnum' universal_id: + type: string example: department CostCenters: type: object From 890bc3ce600ca53a63d0490953f5d034909c5d3d Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Sat, 5 Mar 2022 09:40:00 +0100 Subject: [PATCH 2/8] Missing properties in Team --- personio-personnel-data-api-oa3.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index 9c84636..3e63bda 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -2607,8 +2607,14 @@ components: example: Team attributes: type: object + required: + - id properties: + id: + type: number + example: 1 name: + type: string example: Management type: $ref: '#/components/schemas/TypeEnum' From 3d2b82f50ac74af867070850150813d71b6840d3 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Sat, 5 Mar 2022 09:40:49 +0100 Subject: [PATCH 3/8] Missing property in Absence --- personio-personnel-data-api-oa3.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index 3e63bda..2322196 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -3503,6 +3503,8 @@ components: updated_at: type: string example: 2017-01-17T10:32:18+0100 + comment: + type: string ShortEmployee: type: object properties: From c5ea3b22f54a47c8b66e6817a5f90518cad6c156 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Sat, 5 Mar 2022 09:41:33 +0100 Subject: [PATCH 4/8] Required properties in ShortEmployee --- personio-personnel-data-api-oa3.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index 2322196..ba52954 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -3507,15 +3507,21 @@ components: type: string ShortEmployee: type: object + required: + - attributes properties: type: type: string example: Employee attributes: type: object + required: + - id properties: id: type: object + required: + - value properties: label: example: 1 From a87101160505267a303b3f1e69d1fc46c69b1648 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Sat, 5 Mar 2022 09:42:09 +0100 Subject: [PATCH 5/8] Required properties in Absence --- personio-personnel-data-api-oa3.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index ba52954..7b01619 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -3449,6 +3449,17 @@ components: Absence: type: object + required: + - id + - status + - start_date + - end_date + - half_day_start + - half_day_end + - time_off_type + - employee + - created_at + - updated_at properties: id: type: integer @@ -3479,6 +3490,8 @@ components: example: TimeOffType attributes: type: object + required: + - id properties: id: type: integer From 0267d6721a366febdc5f5b84abb471f5a624b059 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Sat, 5 Mar 2022 09:42:28 +0100 Subject: [PATCH 6/8] Required properties in Employee --- personio-personnel-data-api-oa3.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index 7b01619..af3f3bb 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -2659,9 +2659,13 @@ components: Employee: type: object + required: + - id properties: id: type: object + required: + - value properties: label: example: ID From 8aa942d4486c5f2b90008faf30414c664a529814 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Sat, 5 Mar 2022 09:42:59 +0100 Subject: [PATCH 7/8] Require id in Time-off type --- personio-personnel-data-api-oa3.yaml | 46 +++++++++++++++------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index af3f3bb..0e3cc0d 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -2138,7 +2138,7 @@ components: data: type: object properties: - id: + id: type: integer example: 1 type: @@ -2993,12 +2993,12 @@ components: data: type: array items: - type: object - properties: - type: - example: Employee - attributes: - $ref: "#/components/schemas/Employee" + type: object + properties: + type: + example: Employee + attributes: + $ref: "#/components/schemas/Employee" EmployeeAbsenceBalance: title: Employee Absence Balance @@ -3117,14 +3117,14 @@ components: type: string example: "Project" attributes: - type: object - properties: - name: - type: string - example: "A project name" - active: - type: boolean - example: true + type: object + properties: + name: + type: string + example: "A project name" + active: + type: boolean + example: true AttendanceCreateRequest: type: object @@ -3292,13 +3292,13 @@ components: data: type: object properties: - id: - type: array - items: - type: integer - example: 1 - message: - example: Success + id: + type: array + items: + type: integer + example: 1 + message: + example: Success TimeOffTypeResource: title: Type of time-off resource @@ -3311,6 +3311,8 @@ components: description: Time-off type resource name attributes: type: object + required: + - id properties: id: type: integer From cd89b801d1bf78a4d559d484bd4679e6b2e62271 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Mon, 7 Mar 2022 10:24:04 +0100 Subject: [PATCH 8/8] Fix indentation --- personio-personnel-data-api-oa3.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index 0e3cc0d..076925e 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -2993,12 +2993,12 @@ components: data: type: array items: - type: object - properties: - type: - example: Employee - attributes: - $ref: "#/components/schemas/Employee" + type: object + properties: + type: + example: Employee + attributes: + $ref: "#/components/schemas/Employee" EmployeeAbsenceBalance: title: Employee Absence Balance @@ -3292,13 +3292,13 @@ components: data: type: object properties: - id: - type: array - items: - type: integer - example: 1 - message: - example: Success + id: + type: array + items: + type: integer + example: 1 + message: + example: Success TimeOffTypeResource: title: Type of time-off resource