openapi: 3.0.3
info:
  description: xxx
  version: 0.0.1
  title: x
  x-audience: company-internal

paths:

  /users/{id}:
    patch:
      description: Returns an organization
      operationId: GetOrganization
      parameters:
      - in: path
        name: id
        required: true
        schema:
          #minLength: 36
          type: string
          format: uuid
        style: simple
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/PatchRequest'
      responses:
        '200':
          description: Successful response.



components:
  schemas:
    PatchRequest:
      type: array
      items:
        oneOf:
        - $ref: '#/components/schemas/JSONPatchRequestAddReplaceTest'
        - $ref: '#/components/schemas/JSONPatchRequestRemove'
        - $ref: '#/components/schemas/JSONPatchRequestMoveCopy'
    JSONPatchRequestAddReplaceTest:
      type: object
      additionalProperties: false
      required:
      - value
      - op
      - path
      properties:
        path:
          description: A JSON Pointer path.
          type: string
        value:
          description: The value to add, replace or test.
    JSONPatchRequestRemove:
      type: object
      additionalProperties: false
      required:
      - op
      - path
      properties:
        path:
          description: A JSON Pointer path.
          type: string
        op:
          description: The operation to perform.
          type: string
          enum:
          - remove
    JSONPatchRequestMoveCopy:
      type: object
      additionalProperties: false
      required:
      - from
      - op
      - path
      properties:
        path:
          description: A JSON Pointer path.
          type: string
        op:
          description: The operation to perform.
          type: string
          enum:
          - move
          - copy