Suppose I have an existing Java service implementing a JSON HTTP API, and I want to add a Swagger schema and automatically validate requests and responses against it without ret
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 payloadsThat will let you easily see if the payloads match the expected structure.
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