Hello. Anyone have or know of anything open-source...
# pactflow
j
Hello. Anyone have or know of anything open-sourced which converts Wiremock json's to Pactflow json's (looking for something language agnostic)?
b
By WireMock JSONs, do you mean the stub mappings? And what do you mean by PactFlow JSONs? An OpenAPI spec? Or (and I think this is what you mean) a Pact consumer contract (which can be published to PactFlow, but it's Pact that produces it)
j
Yeah - apologies for my lack of clarity. I do mean stub mappings and pact consumer contracts. Ultumately something similar to what the wiremock-pact adapter does but isn't contingent on Java and operates on WireMock stub jsons.
b
Sorry, deleted previous reply because I didn't think it through
I don't know of such a tool. Still thinking whether it would solve the problem, although I think conceptually there wouldn't be much of a difference between generating a contract from stub mappings compared to actual WireMock traffic, one leads to the other.
I've dropped a question to someone in the WireMock slack to see if they know
Quick response from the WireMock team:
Copy code
We were actually chatting about this in the WireMock office this week.  I think it is something we would like to take a look at
4:52
Lee
Not sure of a tool to do that at the moment though
thankyou 1
j
That's handy - thanks for digging into this. I'm now going to go join the Wiremock slack group. 🙂
✅ 1
b
Sure! This was from Lee, member of the WireMock team.
m
Oh wow, thanks Bas. Let us know how you go Jaspal