逻辑应用程序 HTTP 请求触发器能否根据提供的 JSON 架构进行验证?
Can the Logic App HTTP Request trigger validate against a provided JSON Schema?
逻辑应用程序 HTTP 请求触发器能否根据提供的 JSON 架构进行验证?
向请求主体 JSON 架构添加了一个最小的 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. ...
通读博客 post、Logic Apps – Json Schema Verify,其中介绍了如何使用 Azure 函数来处理验证。
但是 Json.NET 模式现在是 commerical product
不管怎样在实际触发器中是否有验证,甚至更好,return一个400 Bad Request
?
现在是内置的
在HTTP请求触发器设置中,启用"Schema Validation"选项
Schema Validation
Validate request body against the schema provided.
In case there is a mismatch, HTTP 400 will be returned.
逻辑应用程序 HTTP 请求触发器能否根据提供的 JSON 架构进行验证?
向请求主体 JSON 架构添加了一个最小的 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. ...
通读博客 post、Logic Apps – Json Schema Verify,其中介绍了如何使用 Azure 函数来处理验证。
但是 Json.NET 模式现在是 commerical product
不管怎样在实际触发器中是否有验证,甚至更好,return一个400 Bad Request
?
现在是内置的
在HTTP请求触发器设置中,启用"Schema Validation"选项
Schema Validation
Validate request body against the schema provided.
In case there is a mismatch, HTTP 400 will be returned.