PhoenixSwagger.Validator.validate
You're seeing just the function
validate
, go back to PhoenixSwagger.Validator module for more information.
The validate/2
takes a resource path and input parameters
of this resource.
Returns :ok
in a case when parameters are valid for the
given resource or:
{:error, :resource_not_exists}
in a case when path is not exists in the validator table{:error, error_message, path}
in a case when at least one parameter is not valid for the given resource