Json schema validation in Spring REST APIs

筅森魡賤 提交于 2019-12-04 03:05:23

If you take a look at JSON schema site, there are only two libraries for validation in Java.

  1. The ont that Jorge Campos suggested is mature, but looking for new maintainer: https://github.com/fge/json-schema-validator
  2. Second one is relatively new: http://github.com/everit-org/json-schema

I was recently in situation where I had to choose one or the other and I picked first option. It is being used also by Rest Assured library under the hood.

You can also look at Rest Assured Json Schema validator

https://www.baeldung.com/rest-assured-json-schema

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!