PhoenixSwagger.ConnValidator.validate

You're seeing just the function validate, go back to PhoenixSwagger.ConnValidator module for more information.

Validate a request.

Feel free to use it in your own Plugs. Returns:

  • {:ok, conn} on success
  • {:error, :no_matching_path} if the request path could not be mapped to a schema
  • {:error, message, path} if the request was mapped but failed validation
  • {:error, [{message, path}], path} if more than one validation error has been detected