Skip to content

API reference / @chanx-js/codegen / loadSchema

Function: loadSchema() ​

ts
function loadSchema(input): Promise<AsyncAPIDocument>;

Defined in: loader.ts:9

Load an AsyncAPI document from a URL or a path. JSON and YAML both parse.

Parameters ​

ParameterType
inputstring

Returns ​

Promise<AsyncAPIDocument>

MIT licensed