get:
  operationId: getUsers
  tags:
    - users
  summary: Returns a list of users.
  responses:
    200:
      description: OK
      content:
        application/json:
          schema:
            type: array
            items:
              allOf:
                - $ref: '../schemas/User.yaml'
                - type: object
                  properties:
                    company:
                      $ref: '../schemas/Company.yaml'
post:
  operationId: postUsers
  tags:
    - users
  summary: Creates a new user
  requestBody:
    required: true
    content:
      application/json:
        schema:
          type: object
          properties:
            email:
              type: string
            password:
              type: string
            lastname:
              type: string
            firstname:
              type: string
  responses:
    201:
      description: Created
      content:
        application/json:
          schema:
            allOf:
              - $ref: '../schemas/User.yaml'
              - type: object
                properties:
                  company:
                    $ref: '../schemas/Company.yaml'
