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,
How do I use the defined Custom Validator? For example if I define
class NameValidator < ApiPie::Validator::BaseValidator (...defined here) end
How do I use NameValidator then?
NameValidator
I tried calling in my route controller:
class Api::V2::NameController < Api::V2::ApplicationController api :PUT, '/v2/name', 'Get user name' param :name, NameValidator, desc: "Name", required: true param_group :defaults, Api::V2::ApplicationController (.......)
I get this error uninitialized constant Api::V2::NameController::NameValidator
uninitialized constant Api::V2::NameController::NameValidator
Is this written in the code somewhere? Or am I using it wrong?
The text was updated successfully, but these errors were encountered:
I use param :useful_id, :number, 'ID/s of something useful' in the controller
param :useful_id, :number, 'ID/s of something useful'
and automatically, it loads up Apipie::Validator::NumberValidator
Apipie::Validator::NumberValidator
Sorry, something went wrong.
No branches or pull requests
Hi,
How do I use the defined Custom Validator?
For example if I define
How do I use
NameValidator
then?I tried calling in my route controller:
I get this error
uninitialized constant Api::V2::NameController::NameValidator
Is this written in the code somewhere? Or am I using it wrong?
The text was updated successfully, but these errors were encountered: