We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi,
is it possible to run the validators for request and response in some sort of standalone mode?
I don't want to run it in test mode or as a plug either.
effectively something like: https://github.com/apigee-127/sway/blob/master/docs/API.md
The text was updated successfully, but these errors were encountered:
You can call ConnValidator.validate/1 or Validator.validate/2 directly. Is that what you mean by standalone mode?
Sorry, something went wrong.
Can you please update the docs to include examples of using these API methods.
The validation guide has an example of Validator.validate/2: https://hexdocs.pm/phoenix_swagger/schema-validation.html
Validator.validate/2
ConnValidator.validate/1 simply uses the Conn struct, see the usage in the validate plug: https://github.com/xerions/phoenix_swagger/blob/v0.8.1/lib/phoenix_swagger/plug/validate_plug.ex#L27
ConnValidator.validate/1
Conn
No branches or pull requests
hi,
is it possible to run the validators for request and response in some sort of standalone mode?
I don't want to run it in test mode or as a plug either.
effectively something like: https://github.com/apigee-127/sway/blob/master/docs/API.md
The text was updated successfully, but these errors were encountered: