Azure Logic App validate http request body

Yash 86 Reputation points
2020-12-12T10:21:11.273+00:00

My logic app is getting triggered on http json request. I have specified the format of valid expected json body in the trigger as shown in the image.

47519-image.png

As per the image, n1 & n2 should be of integer type, but if a user is sending n1 or n2 as characters, the app is running the flow.

Can anyone please help me to understand, how can I configure the app in a way such that the app automatically(without adding any extra step) sends the error response if request body is not of valid type

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,125 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sardou Noureddine 241 Reputation points
    2020-12-12T15:01:35.4+00:00

    Hi @Yash

    the json validation is now a built in option, but you need to enable it in the http request settings

    47560-captured-1.gif

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.