hey folks, general question really, I know you hav...
# pactflow-ama
m
hey folks, general question really, I know you have AsyncAPI on your roadmap, do you have any more specifics on when/if that is gonna be focused on anytime soon?
y
Hey, We ran a developer preview program last year where we tried out a different approach to the current BDCT, but we didn’t feel it warranted continuing in it’s current guise. We probably envisage something like the current BDCT static document comparison. Your question is timely, as I’ve just written something about this in septembers Pact blog https://docs.pact.io/blog/2024/09/30/pact-open-source-update-sept-2024#pact--asyncapi
m
oh interesting, I can float the idea of trying out the comparator but its likely to trigger security assessments and all, is that sort of an initial idea of how it might work in the future then?
y
It’s the same approach taken by the existing tool used by BDCT. https://github.com/pactflow/swagger-mock-validator we utilise it programatically in PactFlow to power the validations behind BDCT. We imagine a comparator tool for AsyncAPI would follow the same type of pattern as proposed in the spike package, to follows users existing expectations of their OpenAPI BDCT experience. This won’t rule out doing something more substantial in the future, to either further the guarantees of BDCT (like solving provider drift with a dedicated testing tool), or maybe utilising the pact-plugin framework, either in its current guise or potentially a v2.0 rework
m
correct me if I'm wrong, because it's just the bare tool available atm, it's up to us to store the files required for this particular comparison and use the tool to manually do the comparison, as opposed to it being plugged in / available as part of the usual BDCT flow right now right?
y
correct, grab a message pact and your async api file, try it out, see if you get you expect, if not hack at it and iterate from there (or provide a reproducible example, for others to iterate on)
We haven’t officially got it in scope as the team are working on other prios atm but I thought I would start a prototype and see how it lands
m
gotcha, I'll see if I can bring it in for some tests. looking forward to hearing more on it 👍 thanks Yousaf!
m
Thanks Yousaf. @Milda would you up for a bit of a discovery call about this? If we can make it work, I can bring Yousaf along as well. It looks like you’re in the same TZ as Yousaf, so an evening my time and morning/lunch yours might be best.
P.S. which technology are you looking to support via AsyncAPI e.g. Kafka/JSON?
m
hey Matt, happy to arrange for something next week, gives me time to gather up data from different teams
Monday and Tuesday mornings are best for me for next week
m
Thanks! I think I have your email so have sent through an invite for Monday