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

Wrong employees parameter definition in oa3 yaml #29

Open
brannow opened this issue Jun 25, 2020 · 0 comments
Open

Wrong employees parameter definition in oa3 yaml #29

brannow opened this issue Jun 25, 2020 · 0 comments

Comments

@brannow
Copy link

brannow commented Jun 25, 2020

the requests for
/company/attendances:
/company/time-offs:
define the employees parameter as query (comma list)

the server denied such format with the message "the employees must be an array"

after some try and error, the personio server accepted a body json object with an integer array (or an empty array as well)
the response data matched also the expected result, so I assume the documentation is not up to date.

Here the changes:

- name: employees
  in: query
  required: false
  description: A list of Personio employee ID's to filter the results. The result filters including only absences of provided employees
  explode: true
  schema:
    type: array
    items:
      type: integer

to

- name: employees
  in: body
  required: false
  description: A list of Personio employee ID's to filter the results. The result filters including only absences of provided employees
  explode: true
  schema:
    type: object
    properties:
      employees:
        type: array
        items:
          type: integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant