Skip to content

[F] resolveRequestVisibility

function resolveRequestVisibility(
program,
operation,
verb): Visibility

Returns the applicable parameter visibility or visibilities for the request if @requestVisibility was used. Otherwise, returns the default visibility based on the HTTP verb for the operation.

Parameters

ParameterTypeDescription
programProgram-
operationOperationThe TypeSpec Operation for the request.
verbHttpVerbThe HTTP verb for the operation.

Returns

Visibility

The applicable parameter visibility or visibilities for the request.