MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / array

Function array

packages/openapi-v3/src/decorators/parameter.decorator.ts:433–443  ·  view source on GitHub ↗
(
    name: string,
    source: ParameterLocation,
    itemSpec: SchemaObject | ReferenceObject,
  )

Source from the content-addressed store, hash-verified

431 * @param itemSpec - Item type for the array or the full item object
432 */
433 export const array = function (
434 name: string,
435 source: ParameterLocation,
436 itemSpec: SchemaObject | ReferenceObject,
437 ) {
438 return param({
439 name,
440 in: source,
441 schema: {type: 'array', items: itemSpec},
442 });
443 };
444
445 /**
446 * Sugar decorator for `filter` query parameter

Callers

nothing calls this directly

Calls 1

paramFunction · 0.85

Tested by

no test coverage detected