我正在使用Spring Boot和[jackson-module-jsonSchema](https://github.com/FasterXML/jackson-module-jsonSchema)构建一个REST API,用于生成JSON模式.我正在寻找最好的方法来验证请求JSON有效负载到达我的API端点(Spring控制器)与针对公开资源定义的已定义JSON模式,验证包括检查必需字段,格式,最小值和最大值等.一切我们可以针对架构进行验证.
看起来jackson json模式模块对于模式生成很有用,但不适用于验证,对吗?关于如何实现我想要做的事情的任何建议?
I'm writing a framework for RESTful API test automation, I already decided to go with REST Assured, I'm not 100% sure about add a layer to allow define tests using a domain specific language like Gherkin, therefore adding a BDD framework like Cucumber.
What is your opinion?
Is a good approach to use BDD in API automation testing?