Sha256: 8bce40b3c2d538112a0fd1c31eb6e6f9072389e38447d592bd8cfc8aad14bef9
Contents?: true
Size: 404 Bytes
Versions: 10
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
10 entries across 10 versions & 1 rubygems