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

Error at reassign action, "body" needs to be array #1

Open
Knoedel66 opened this issue Aug 17, 2021 · 2 comments
Open

Error at reassign action, "body" needs to be array #1

Knoedel66 opened this issue Aug 17, 2021 · 2 comments
Assignees

Comments

@Knoedel66
Copy link

After testing all actions inside the custom connector successfully I created a simple flow that just contains a "Start an approval" and then the "Reassign an Approval" action. After testing the flow, the approval is created correctly and also the reassignment worked. However, the flow throws an error at the reassign action:

Invalid response for workflow process "Reassign_an_Approval" of type "OpenApiConnection". The API "ReassignApproval" operation requires that the "body" property is of type "Array", but is of type "Object".

I was trying to change the body property to an array but I cant quite get it to work, any help?

@Knoedel66
Copy link
Author

  summary: Reassign an Approval
  operationId: ReassignApproval
  description: This action will give you a way to reassign approvals
  parameters:
  - {name: environment-name, in: path, required: true, type: string, x-ms-summary: Environment,
    description: The name of the environment (default-GUID or GUID)}
  - {name: approval-name, in: path, required: true, type: string, description: The
      name of the approval (GUID), x-ms-summary: Approval}
  - {name: approvalrequest-name, in: path, required: true, type: string, x-ms-summary: Approval
      request, description: The name of the approval request (GUID)}
  - {name: api-version, in: query, required: false, type: string, default: '2016-11-01',
    x-ms-summary: API version}
  - name: body
    in: body
    required: false
    schema:
      type: object
      properties:
        AssignedTo: {type: string, description: AssignedTo}

Body property is at the end, needs to be an array somehow

@Laskewitz
Copy link
Owner

I'll try to fix this somewhere in the upcoming weeks. Thanks for the report!

@Laskewitz Laskewitz self-assigned this Aug 19, 2021
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

2 participants