nori_asyncapi/decoder

Decoders for AsyncAPI 3.x documents (from a Dynamic produced by the YAML or JSON bridge). Uses gleam/dynamic/decode.

Message payloads/headers are captured raw as Dynamic — they are JSON Schema and get decoded by nori.parse_schema downstream, so the schema engine is never duplicated here.

Values

pub fn decode_document(
  dyn: dynamic.Dynamic,
) -> Result(document.Document, List(decode.DecodeError))

Decode an AsyncAPI document from a Dynamic.

pub fn document_decoder() -> decode.Decoder(document.Document)

Decoder for the AsyncAPI root object.

Search Document