Renders the contract contents in OpenApi JSON format.
Cache the result of the API render, in case it is expensive to calculate.