RigInboundGateway.ApiProxy.Validations (Reactive Interaction Gateway v3.0.0-alpha.2) View Source
Used to validate APIs configuration for reverse proxy. Validates use cases such as setting "target" to "kafka" but not "topic", which is required in such case.
When any error occurs during RIG start -> process will exit. When any error occurs during REST API request -> process won't exit, but instead API returns 400 -- bad request.
Link to this section Summary
Functions
Returns module configuration.
Link to this section Types
Specs
Specs
Specs
Link to this section Functions
Specs
config() :: any()
Returns module configuration.
If application environment contains values in Keyword
or Map
struct,
defaults from macro usage will be recursively merged with application configuration.
If one of the configuration parameters does not exist or can not be resolved, raises ArgumentError
.
Specs
to_map(error_list_t()) :: error_map_t()
Specs
type_validation(map(), String.t(), String.t(), function()) :: error_list_t()
Specs
validate(RigInboundGateway.ApiProxy.Api.t()) :: {:error, error_list_t()} | {:ok, RigInboundGateway.ApiProxy.Api.t()}
Specs
validate!(RigInboundGateway.ApiProxy.Api.t()) :: RigInboundGateway.ApiProxy.Api.t()
Specs
validate_all(RigInboundGateway.ApiProxy.Api.t()) :: error_list_t()
Specs
validate_auth(error_list_t(), RigInboundGateway.ApiProxy.Api.t()) :: error_list_t()
Specs
validate_auth_type(RigInboundGateway.ApiProxy.Api.t()) :: error_t()
Specs
validate_endpoint_target(RigInboundGateway.ApiProxy.Api.endpoint(), [String.t()]) :: boolean()
Specs
validate_endpoints(error_list_t(), RigInboundGateway.ApiProxy.Api.t()) :: error_list_t()
Specs
validate_integer(map(), String.t()) :: error_list_t()
Specs
validate_list(map(), String.t()) :: error_list_t()
Specs
validate_proxy(RigInboundGateway.ApiProxy.Api.t()) :: error_list_t()
Specs
validate_required_props(error_list_t(), RigInboundGateway.ApiProxy.Api.t()) :: error_list_t()
Specs
validate_secured_endpoint( RigInboundGateway.ApiProxy.Api.t(), RigInboundGateway.ApiProxy.Api.endpoint() ) :: error_t()
Specs
validate_string(map(), String.t()) :: error_list_t()
Specs
validate_version_data(RigInboundGateway.ApiProxy.Api.t()) :: error_list_t()
Specs
with_any_error(error_list_t(), integer()) :: error_list_t()