Class SwaggerInputProcessor

Class for processing Swagger inputs

Hierarchy (view full)

Constructors

Properties

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

Methods

  • Parameters

    • operation: undefined | {
          consumes?: MimeTypes;
          deprecated?: boolean;
          description?: string;
          externalDocs?: ExternalDocumentationObject;
          operationId?: string;
          parameters?: Parameters;
          produces?: MimeTypes;
          responses: ResponsesObject;
          schemes?: string[];
          security?: SecurityRequirementObject[];
          summary?: string;
          tags?: string[];
      }
    • path: string
    • inputModel: InputMetaModel
    • Optional options: ProcessorOptions

    Returns void

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

    Parameters

    • input: any

    Returns undefined | string