Function
array
(
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
Tested by
no test coverage detected