* 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,
})
| 228 | * @see https://swagger.io/specification/#parameter-object |
| 229 | */ |
| 230 | function 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 |
no outgoing calls
no test coverage detected