MCPcopy
hub / github.com/rapi-doc/RapiDoc / exampleListTemplate

Method exampleListTemplate

src/components/api-request.js:317–326  ·  view source on GitHub ↗
(paramName, paramType, exampleList = [])

Source from the content-addressed store, hash-verified

315 }
316
317 exampleListTemplate(paramName, paramType, exampleList = []) {
318 return html` ${
319 exampleList.length > 0
320 ? html`<span style="font-weight:bold">Examples: </span>
321 ${anyExampleWithSummaryOrDescription(exampleList)
322 ? this.renderLongFormatExamples(exampleList, paramType, paramName)
323 : this.renderShortFormatExamples(exampleList, paramType, paramName)}`
324 : ''
325 }`;
326 }
327
328 inputParametersTemplate(paramType) {
329 const filteredParams = this.parameters ? this.parameters.filter((param) => param.in === paramType) : [];

Callers

nothing calls this directly

Calls 4

htmlFunction · 0.85

Tested by

no test coverage detected