How to validate API in tests with Swagger?
问题 I'm trying to figure out the best way to have my API documentation be the source of truth and use it to validate the actual Java REST code ideally through integration testing or something of that sort. We're using the contract first or consumer contract type of approach, so we don't want the documentation to be generated from annotated code necessarily and updating every time a developer makes a change. One thought has been to use Swagger, but I'm not sure how best to make it be used for