Skip to content

Commit

Permalink
Fixes #7284 - BooleanValidator set expected_type as boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Tsang committed Aug 29, 2014
1 parent 993da17 commit c57f9ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/apipie/validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ def self.build(param_description, argument, options, block)
end
end

def expected_type
'boolean'
end

def description
"Must be 'true' or 'false'"
end
Expand Down

0 comments on commit c57f9ed

Please sign in to comment.