MCPcopy
hub / github.com/nestjs/swagger / addGlobalParameters

Method addGlobalParameters

lib/document-builder.ts:181–188  ·  view source on GitHub ↗
(
    // Examples should be specified under the "schema" object
    // Top level attributes are ignored
    ...parameters: Omit<ParameterObject, 'example' | 'examples'>[]
  )

Source from the content-addressed store, hash-verified

179 }
180
181 public addGlobalParameters(
182 // Examples should be specified under the "schema" object
183 // Top level attributes are ignored
184 ...parameters: Omit<ParameterObject, 'example' | 'examples'>[]
185 ): this {
186 GlobalParametersStorage.add(...parameters);
187 return this;
188 }
189
190 public addSecurityRequirements(
191 name: string | SecurityRequirementObject,

Callers 3

Calls 1

addMethod · 0.45

Tested by

no test coverage detected