APIM中是否支持Newtonsoft.Json.Schema命名空间 [英] Does Newtonsoft.Json.Schema namespace supported in APIM

查看:119
本文介绍了APIM中是否支持Newtonsoft.Json.Schema命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,


我正在尝试使用  Newtonsoft.Json.Schema命名空间使用JsonSchema验证我的传入请求。但是此命名空间未列在&hbsp; 文档
任何人都可以告诉我们如何在APIM中包含/导出外部名称空间或使用Json模式进行Json对象验证的任何其他建议?


解决方案

不幸的是,截至今天没有办法包含/导入外部命名空间。

但你仍然可以实现JSON对象验证虽然但不在APIM内部。


您可以创建一个简单的HTTP触发
azure function
应用程序执行JSON验证,您可以使用
send-request 政策声明。


Hi Team,

I am trying to validate my incoming request with JsonSchema using Newtonsoft.Json.Schema namespace. But this namespace was not listed under supported namespace section in Docs. Can anyone please let me know how can we include/export the external namespaces in APIM or any other suggestions for Json object validation using Json schema ?

解决方案

Unfortunately, there is no way to include/import external namespaces as of today.
But you can still achieve JSON Object Validation though but not within APIM itself.

You can create a simple HTTP triggered azure function app which performs the JSON validation and you can call it using the send-request policy statement.


这篇关于APIM中是否支持Newtonsoft.Json.Schema命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆