Modelina
    Preparing search index...

    Class AsyncAPIInputProcessor

    Class for processing AsyncAPI inputs

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    MODELINA_INFERRED_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

      • Optionalinput: any

      Returns string | undefined

    • 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> = ...

        map of already processed schemas

      • Optionalcontext: string | SchemaContext

        context information for name inference

      Returns boolean | AsyncapiV2Schema