Sha256: 7808336034807aa3028f57e134386b4345adf596f96893be0e5bad1b8fcd82c1
Contents?: true
Size: 548 Bytes
Versions: 22
Compression:
Stored size: 548 Bytes
Contents
module JSON class Schema class MinPropertiesAttribute < Attribute def self.validate(current_schema, data, fragments, processor, validator, options = {}) if data.is_a?(Hash) && (data.size < current_schema.schema['minProperties']) message = "The property '#{build_fragment(fragments)}' did not contain a minimum number of properties #{current_schema.schema['minProperties']}" validation_error(processor, message, fragments, current_schema, self, options[:record_errors]) end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems