apicurio-registry icon indicating copy to clipboard operation
apicurio-registry copied to clipboard

Schema converter support

Open Yuutakasan opened this issue 2 years ago • 5 comments

It is time-consuming because we have to deal with json-schema for open api spec, Avro for Kafka, and another schema for Prptbuf. I wonder if it would be possible to add a function to be able to convert each schema information.

Yuutakasan avatar Aug 04 '22 01:08 Yuutakasan

This is a very interesting idea. I suspect converting from one schema format to another is a lossy process. Certainly the semantic domain of JSON Schema is much greater than Avro (for example).

So I think there are a lot of gotchas and challenges with this. But if it's something that we could get to work, even in a limited/constrained way, it could be very valuable.

@Apicurio/developers wdyt?

EricWittmann avatar Aug 16 '22 16:08 EricWittmann

Yes, it is. I am currently using apicurio studio to create openapi specs and define API responses in json, but the backend is kafka and I am having trouble with having to redefine the interaction with kafka in avro.

Yuutakasan avatar Aug 20 '22 22:08 Yuutakasan

Perhaps a better approach would be to use AsyncAPI (instead of OpenAPI) to describe your Kafka applications?

https://www.asyncapi.com/

Apicurio Studio has beta support for AsyncAPI.

EricWittmann avatar Aug 24 '22 19:08 EricWittmann

I will try it once.

Yuutakasan avatar Aug 31 '22 23:08 Yuutakasan

@EricWittmann Finally tried it...GUI is working properly now. I hadn't noticed. It's true that this feature might be a good substitute for now. I thought it was more in development and not working since you said it was a beta.

Streetlights asddasdas Kafka API 1.0.0 image Gitter Streaming API 1.0.0 image

Yuutakasan avatar Sep 04 '22 22:09 Yuutakasan