Do pact support avro schema registry , i am little...
# pact-jvm
s
Do pact support avro schema registry , i am little confused can someone help me out with this?
r
Yes, it does support it. You need to use a content type of
application/vnd.schemaregistry.v1+json
. I don't know of any examples, maybe @Yousaf Nabi (pactflow.io) might know of some
y
Hey hey, here is an example by Andy Muir, I won't tag him as its late https://docs.pact.io/recipes/kafka#magic-bytes for Kafka w/schema registry
We wrote a set of blog posts to accompany, I will have to find the link
r
Wow, that's awesome!
y
https://muirandy.wordpress.com/2022/02/18/contract-testing-with-pact-kafka-and-schema-registry-part-1/ https://muirandy.wordpress.com/2022/03/03/contract-testing-with-pact-kafka-and-schema-registry-part-2/ sorry if it doesn't help Samiksha as you are using avro, I can't tell myself how suitable it would be, as I am only familiar with gRPC through our demos, and this is a new world
I ❤️
pactman
g
@User were you able to create pact for AVRO consumers and publishers, the link above clearly state below in Gotchas cc @Yousaf Nabi (pactflow.io) @rholshausen @User
a
Hi all. I missed this thread!! We implemented only for Json Schema as that was what we needed. We didn't have scope to do more.
g
is there a plan to implement AVRO in near future?
s
Pact doesn't support avro @Gaurav, not sure the next release would support AVRO. Can anyone from community comment here
y
I can see you have Samiksha as you commented on the video. I haven't used Avro, and giving this video a watch now. I haven't seen any community examples yet
I believe pact-plugins will be the way forward here https://github.com/pact-foundation/pact-plugins