Hierarchy

  • OperationBuilder

Constructors

Properties

_operation: { 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[] }

Type declaration

  • Optional callbacks?: { [callback: string]: ReferenceObject | CallbackObject }
    • [callback: string]: ReferenceObject | CallbackObject
  • Optional deprecated?: boolean
  • Optional description?: string
  • Optional externalDocs?: ExternalDocumentationObject
  • Optional operationId?: string
  • Optional parameters?: (ReferenceObject | ParameterObject)[]
  • Optional requestBody?: ReferenceObject | RequestBodyObject
  • responses: ResponsesObject
  • Optional security?: SecurityRequirementObject[]
  • Optional servers?: ServerObject[]
  • Optional summary?: string
  • Optional tags?: string[]
_defaults?: OperationDefaults

Methods

  • Shorthand for build() method

    Returns

    A deep copy of the built operation object

    Returns { 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[] }

    • Optional callbacks?: { [callback: string]: ReferenceObject | CallbackObject }
      • [callback: string]: ReferenceObject | CallbackObject
    • Optional deprecated?: boolean
    • Optional description?: string
    • Optional externalDocs?: ExternalDocumentationObject
    • Optional operationId?: string
    • Optional parameters?: (ReferenceObject | ParameterObject)[]
    • Optional requestBody?: ReferenceObject | RequestBodyObject
    • responses: ResponsesObject
    • Optional security?: SecurityRequirementObject[]
    • Optional servers?: ServerObject[]
    • Optional summary?: string
    • Optional tags?: string[]
  • Creates a deep copy of the current state of the operation and returns it.

    Returns

    A deep copy of the built operation object

    Returns { 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[] }

    • Optional callbacks?: { [callback: string]: ReferenceObject | CallbackObject }
      • [callback: string]: ReferenceObject | CallbackObject
    • Optional deprecated?: boolean
    • Optional description?: string
    • Optional externalDocs?: ExternalDocumentationObject
    • Optional operationId?: string
    • Optional parameters?: (ReferenceObject | ParameterObject)[]
    • Optional requestBody?: ReferenceObject | RequestBodyObject
    • responses: ResponsesObject
    • Optional security?: SecurityRequirementObject[]
    • Optional servers?: ServerObject[]
    • Optional summary?: string
    • Optional tags?: string[]
  • Add a callbacks field to the Operation object.

    Returns

    OperationBuilder instances for method chaining

    Parameters

    • callbacks: { [callback: string]: OpenAPIV3.ReferenceObject | OpenAPIV3.CallbackObject }

      The callbacks object per OpenApiv3 spec

      • [callback: string]: OpenAPIV3.ReferenceObject | OpenAPIV3.CallbackObject

    Returns OperationBuilder

  • Add a externalDocObject field to the Operation object

    Returns

    OperationBuilder instances for method chaining

    Parameters

    • externalDocObject: ExternalDocumentationObject

      The externalDocObject object per OpenApiv3 spec

    Returns OperationBuilder

  • Add a parameters field to the Operation object, will include defaults.

    Returns

    OperationBuilder instances for method chaining

    Parameters

    • parameters: (ReferenceObject | ParameterObject)[]

      The parameters object per OpenApiv3 spec

    • excludeDefault: boolean = false

    Returns OperationBuilder

Generated using TypeDoc