Hi, has anyone here experimented with PACT's messa...
# general
j
Hi, has anyone here experimented with PACT's messaging API? I'm looking at the state providers/handlers but I don't see much about their usage in the messaging API.
m
They should be exactly the same as the HTTP ones
Which language?
j
Go
It's probably my lack of understanding of how it works then. My understanding is the support is still early so I didn't now how complete it was.
m
One sec
Go fully supports messages
The v2.x.x branch does to if you're up for using the next major
j
Thanks, I've been looking through the docs but couldn't see much mention of how to use the states from the messaging perspective. I'll take a look at the 2.x.x branch.
Perhaps a naive question, but how do the
Params
values get set? (here). I see
Given
sets the Name.
m
They aren’t, at the moment. The type is there because it may be received
I think we could actually support a
GivenWithParams(string, params)
in that API now
j
@Matt (pactflow.io / pact-js / pact-go) Would you be happy for me to create a PR to add support for
GivenWithParams
?
m
Sure thing! Alternatively you could look at using the beta which is going to be the next major release. I think the API is close enough to stable