Class AsyncAPIInputProcessor

Class for processing AsyncAPI inputs

Hierarchy

Constructors

Properties

MODELGEN_INFFERED_NAME: string = 'x-modelgen-inferred-name'
supportedVersions: string[] = ...

Methods

  • Try to find the AsyncAPI version from the input. If it cannot undefined are returned, if it can, the version is returned.

    Parameters

    • Optional input: any

    Returns undefined | string

  • Reflect the name of the schema and save it to x-modelgen-inferred-name extension.

    This keeps the the id of the model deterministic if used in conjunction with other AsyncAPI tools such as the generator.

    Parameters

    • schema: boolean | SchemaInterface

      to reflect name for

    • alreadyIteratedSchemas: Map<string, AsyncapiV2Schema> = ...

    Returns boolean | AsyncapiV2Schema

Generated using TypeDoc