enter image description hereLike openAPI is there a way to document AVRO schema for GCP pubsub. Is there an UI provided by GCP like swagger UI. Or what is the recomendation here.
According to me Async API could be an option. But really not sure what is the best solution
You can definitely use AsyncAPI for it as it's protocol agnostic, ontop of enabling you to define payloads with Avro.
Here is an example with the new AsyncAPI v3 specification:
Also check it out in studio for a HTML preview.
If you need to define explicit Google PubSub information, you use the concept called Bindings, that can be defined on channels, operations and messages.
Check it out in Studio here. Here is just a simple example with the example above with an example Google PubSub binding information.
Checkout all the documentation and examples for Google pubsub here.