Method: SimpleJSONSchema::Checker.enum
- Defined in:
- lib/simple_json_schema/checker.rb
.enum(scope) ⇒ Object
33 34 35 36 |
# File 'lib/simple_json_schema/checker.rb', line 33 def enum(scope) enum = scope[:enum] scope.error(:enum) if enum && !enum.include?(scope.value) end |