I'd recommend you can write a small test class whi...
# http4k
d
I'd recommend you can write a small test class which you can run to generate the contract JSON. As a general rule, we also keep the JSON in Git so that we know when it changes (and we have an approval test to manually approve the changes before it gets committed)
e
Is there an example to generate the contract JSON?
I mean in http4k-example repo?
d
well you need to build a version of the application in order to then sent a request to
which you'd have in your build anyway probably
e
Sorry, I am not following - so in this example https://www.http4k.org/guide/modules/contracts/, is there an attribute which I can write as a JSON?
d
e
Ah, Gotcha - thanks, I will follow this.