Sha256: e2dcddc1c17e23c775dde49664b3ab964c13b7519ce9e604bead9513e8eedc54
Contents?: true
Size: 404 Bytes
Versions: 6
Compression:
Stored size: 404 Bytes
Contents
require 'json-schema/attributes/limit' module JSON class Schema class NumericLimitAttribute < LimitAttribute def self.acceptable_type Numeric end def self.error_message(schema) exclusivity = exclusive?(schema) ? 'exclusively' : 'inclusively' format("did not have a %s value of %s, %s", limit_name, limit(schema), exclusivity) end end end end
Version data entries
6 entries across 5 versions & 3 rubygems