PhoenixSwagger.ConnValidator (phoenix_swagger v0.8.4)
View SourceSummary
Functions
Validate a request.
Functions
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