有没有办法查看架构验证在哪里失败? [英] Is there a way to see where a schema validation fails?

查看:45
本文介绍了有没有办法查看架构验证在哪里失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试针对某种复杂的模式"(在空手道文档中定义)验证json.我得到的错误不是很明显:

I'm trying to validate a json against a somehow complex 'schema' (defined as in karate docs). The error I'm getting is not so explicit:

原因:不相等

我如何检查它实际上在哪些地方验证失败?

How can I check where it actually fails validating?

推荐答案

对此感到非常抱歉,我要怪.我知道这对您无济于事,但我现在正在重写空手道的核心,这就是改进版本中比赛失败的样子:

Really sorry about that, I'm to blame. I know this won't help you but I'm re-writing the core of Karate right now and this is how a match failure looks like in the improved version:

您是否有可能为您现在拥有的内容创建代表性示例(在GitHub上创建问题).我想看看将来是否能更好地处理该问题,或者立即进行调整.

Would it be possible for you to create a representative sample of what you have right now (create an issue on GitHub). I would like to see if that is handled better in the future or tweak things right away.

这篇关于有没有办法查看架构验证在哪里失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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