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
| Parameter | Type |
|---|---|
input | string |
Returns
Promise<AsyncAPIDocument>