Skip to content

[F] filterResponseModels

function filterResponseModels(operation, predicate): Model[] | undefined;

Filter operation responses using a predicate

ParameterTypeDescription
operationHttpOperationThe operation containign the response models to filter
predicate(model) => booleanA predicate function to apply to each response model

Model[] | undefined

A list of models matching the predicate, or undefined if there are none