Generate
We know - json-schema can get pretty verbose! It's a powerful tool, but writing the entire Contract by hand for a complex service is a painstaking task. We've created a simple generator to speed this process up. You can invoke it programmatically, or with the provided rake task.
The basic generate we've bundled with Pacto completes partially defined Contracts - Contracts that have a request defined but no response. We haven't bundled any other generates, but you could use the API to generate from other sources, like existing VCR cassettes, apiblueprint, or WADL. If you want some help or ideas, try the pacto mailing-list.
Note: Request headers are only recorded if they are in the response's Vary header, so make sure your services return a proper Vary for best results!
In this section
Source: features/generate/README.md at commit 3029d8c4, Pacto (MIT license).