Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix types and required fields #103

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 44 additions & 9 deletions personio-personnel-data-api-oa3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,7 @@ components:
data:
type: object
properties:
id:
id:
type: integer
example: 1
type:
Expand Down Expand Up @@ -2480,6 +2480,7 @@ components:
type: object
properties:
label:
type: string
example: Department
value:
type: object
Expand All @@ -2495,6 +2496,7 @@ components:
type:
$ref: '#/components/schemas/TypeEnum'
universal_id:
type: string
example: department
CostCenters:
type: object
Expand Down Expand Up @@ -2605,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'
Expand Down Expand Up @@ -2651,9 +2659,13 @@ components:

Employee:
type: object
required:
- id
properties:
id:
type: object
required:
- value
properties:
label:
example: ID
Expand Down Expand Up @@ -3105,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
Expand Down Expand Up @@ -3299,6 +3311,8 @@ components:
description: Time-off type resource name
attributes:
type: object
required:
- id
properties:
id:
type: integer
Expand Down Expand Up @@ -3441,6 +3455,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
Expand Down Expand Up @@ -3471,6 +3496,8 @@ components:
example: TimeOffType
attributes:
type: object
required:
- id
properties:
id:
type: integer
Expand All @@ -3495,17 +3522,25 @@ components:
updated_at:
type: string
example: 2017-01-17T10:32:18+0100
comment:
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
Expand Down