MCPcopy
hub / github.com/badges/shields / pathParam

Function pathParam

core/base-service/openapi.js:230–237  ·  view source on GitHub ↗

* Helper function for assembling an OpenAPI path parameter object * * @param {module:core/base-service/openapi~PathParamInput} param Input param * @returns {module:core/base-service/openapi~OpenApiParam} OpenAPI Parameter Object * @see https://swagger.io/specification/#parameter-object

({
  name,
  example,
  schema = { type: 'string' },
  description,
})

Source from the content-addressed store, hash-verified

228 * @see https://swagger.io/specification/#parameter-object
229 */
230function pathParam({
231 name,
232 example,
233 schema = { type: 'string' },
234 description,
235}) {
236 return { name, in: 'path', required: true, schema, example, description }
237}
238
239/**
240 * Helper function for assembling an array of OpenAPI path parameter objects

Callers 15

DummyServiceClass · 0.90
openapi.spec.jsFile · 0.90
CodecovClass · 0.90
pypi-base.jsFile · 0.90
PypiDownloadsClass · 0.90
PiWheelsVersionClass · 0.90
NpmTypeDefinitionsClass · 0.90
NpmUnpackedSizeClass · 0.90
NpmLicenseClass · 0.90
NpmCollaboratorsClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected