Logic App HTTP Request触发器是否可以针对提供的JSON Schema进行验证?
在Request Body JSON Schema中添加了一个最小的JSON模式,我得到了各种元素......
"Correlation": {
"id": "/properties/Correlation",
"properties": {
"CaseNumber": {
"id": "/properties/Correlation/properties/CaseNumber",
"type": "string"
},
"ProviderCaseNumber": {
"id": "/properties/Correlation/properties/ProviderCaseNumber",
"type": "string"
}
},
"required": ["CaseNumber"],
"type": "object"
}, ... etc. ...
阅读博客文章Logic Apps – Json Schema Verify,其中介绍了如何使用Azure功能来处理验证。
但Json.NET Schema现在是commerical product
在实际触发器中是否存在验证,甚至更好地返回400 Bad Request
?
答案 0 :(得分:0)
它是内置的
在HTTP请求触发设置中,启用“模式验证”选项
Schema Validation
Validate request body against the schema provided.
In case there is a mismatch, HTTP 400 will be returned.