Hi are there any plans or support already for exte...
# general
d
Hi are there any plans or support already for extending the type of response content that the framework understands? For example we have endpoints that return JWTs which pact doesn't understand so we have to specify exact responses for our pacts making them rather brittle. If the framework could understand the structure of a JWT and handle the base64 encoding then our tests could be much more like tests for plain JSON endpoints.
m
In general, yes open to extension like this
there are two main ways to achieve this: 1. contributions to the core (https://github.com/pact-foundation/pact-reference/tree/master/rust) 2. Plugins Probably, this would need to be a new matcher in the core.
d
Thanks for the pointers, I've never used rust before so it's going to take a while to understand what's going on there.
m
A good start would be to create a feature request on the repo and we can start to shape the idea there. Also chat with us in #C02BXLDJ7JR
FYI the lead maintainer is currently on annual leave so we may need a few more days before he can help out
d
Thanks for the extra details, I've created https://github.com/pact-foundation/pact-reference/issues/356 which is hopefully the kind of thing that you had in mind. No worries about waiting a few days, I suspect that this won't be a trivial thing to add (assuming that you decide you want to add it at all). I'm in the UK so happy to give more details or discuss things most times between 09:00 and 17:30 UTC
thankyou 1