Class OpenAPIInputProcessor

Class for processing OpenAPI inputs

Hierarchy (view full)

Constructors

Properties

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

Methods

  • Parameters

    • mediaTypes: {
          [media: string]: OpenAPIV3.MediaTypeObject | OpenAPIV3_1.MediaTypeObject;
      }
      • [media: string]: OpenAPIV3.MediaTypeObject | OpenAPIV3_1.MediaTypeObject
    • path: string
    • inputModel: InputMetaModel
    • Optional options: ProcessorOptions

    Returns void

  • Parameters

    • operation: undefined | {
          callbacks?: {
              [callback: string]: ReferenceObject | CallbackObject;
          };
          deprecated?: boolean;
          description?: string;
          externalDocs?: ExternalDocumentationObject;
          operationId?: string;
          parameters?: (ReferenceObject | ParameterObject)[];
          requestBody?: ReferenceObject | RequestBodyObject;
          responses: ResponsesObject;
          security?: SecurityRequirementObject[];
          servers?: ServerObject[];
          summary?: string;
          tags?: string[];
      } | OperationObject<{}>
    • path: string
    • inputModel: InputMetaModel
    • Optional options: ProcessorOptions

    Returns void

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

    Parameters

    • input: any

    Returns undefined | string