更新时间:2022-03-29 03:28:33
我认为没有什么可以单独完成,但您可以通过以下方式轻松完成:
I don't think there's anything ready to do this alone, but you can easily do this by the following:
SchemaValidator
from the Swagger Inflector project. You can use this to validate inbound and outbound payloads这将让您轻松查看负载是否与预期结构匹配.
That will let you easily see if the payloads match the expected structure.
当然,这一切都是使用 Inflector 自动为您完成的,但应该有足够的原始组件来帮助您在自己的实现中做到这一点
Of course, this is all done for you automatically with Inflector but there should be enough of the raw components to help you do this inside your own implementation