Skip to content

[F] getEffectivePayloadType

function getEffectivePayloadType(
context,
type,
visibility?): Model

If the given type is an anonymous model, returns a named model with same shape. The finding logic will ignore all the properties of header/query/path/status-code metadata, as well as the properties that are not visible in the given visibility if provided. If the model found is also anonymous, the input type is returned unchanged.

Parameters

ParameterTypeDescription
contextTCGCContext
typeModel
visibility?Visibility-

Returns

Model