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

Version Path
json-schema-ouidou-2.9.1 lib/json-schema/attributes/limits/numeric.rb
json-schema-ouidou-2.9.0 lib/json-schema/attributes/limits/numeric.rb
json-schema-3.0.0 lib/json-schema/attributes/limits/numeric.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/bundler/gems/json-schema-2253a5ee6679/lib/json-schema/attributes/limits/numeric.rb
mountapi-0.11.1 vendor/json-schema/lib/json-schema/attributes/limits/numeric.rb
json-schema-2.8.1 lib/json-schema/attributes/limits/numeric.rb