go-asyncapi

Go library that loads AsyncAPI 3 documents. asyncapi.Load(path) from github.com/psyb0t/go-asyncapi reads a YAML or JSON spec plus every file it references and returns a *asyncapi.Document with servers (URL and variables), channels (address, parameters, messages), operations (send/receive action, channel, messages, reply) and messages (payload, headers, correlationId, content type, bindings) in document order, with every $ref followed and message and operation traits merged. Payload and header schemas stay as ordered *asyncapi.Object trees, and Document.Resolver.Deref follows the $refs inside them. Errors wrap ctxerrors/commerr sentinels. Use when Go code needs to read, inspect, validate or generate from an AsyncAPI 3 spec, or is already importing go-asyncapi.

Install

openclaw skills install @psyb0t/go-asyncapi