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

Method addTag

lib/document-builder.ts:117–137  ·  view source on GitHub ↗
(
    name: string,
    description = '',
    externalDocs?: ExternalDocumentationObject,
    options?: { summary?: string; parent?: string; kind?: string }
  )

Source from the content-addressed store, hash-verified

115 }
116
117 public addTag(
118 name: string,
119 description = '',
120 externalDocs?: ExternalDocumentationObject,
121 options?: { summary?: string; parent?: string; kind?: string }
122 ): this {
123 this.document.tags = this.document.tags.concat(
124 pickBy(
125 {
126 name,
127 summary: options?.summary,
128 description,
129 externalDocs,
130 parent: options?.parent,
131 kind: options?.kind
132 },
133 negate(isUndefined)
134 ) as unknown as TagObject
135 );
136 return this;
137 }
138
139 public addExtension(
140 extensionKey: string,

Callers 5

bootstrapFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected