Sha256: 7959e5c04d61080d9cc7a413bb315fbcae8475b94c3c92b5b0161972dc1bf805

Contents?: true

Size: 1.2 KB

Versions: 54

Compression:

Stored size: 1.2 KB

Contents

module JSON
  class Schema
    
    class Draft1 < Validator
      def initialize
        super
        @attributes = {
          "type" => JSON::Schema::TypeAttribute,
          "disallow" => JSON::Schema::DisallowAttribute,
          "format" => JSON::Schema::FormatAttribute,
          "maximum" => JSON::Schema::MaximumInclusiveAttribute,
          "minimum" => JSON::Schema::MinimumInclusiveAttribute,
          "minItems" => JSON::Schema::MinItemsAttribute,
          "maxItems" => JSON::Schema::MaxItemsAttribute,
          "minLength" => JSON::Schema::MinLengthAttribute,
          "maxLength" => JSON::Schema::MaxLengthAttribute,
          "maxDecimal" => JSON::Schema::MaxDecimalAttribute,
          "enum" => JSON::Schema::EnumAttribute,
          "properties" => JSON::Schema::PropertiesOptionalAttribute,
          "pattern" => JSON::Schema::PatternAttribute,
          "additionalProperties" => JSON::Schema::AdditionalPropertiesAttribute,
          "items" => JSON::Schema::ItemsAttribute,
          "extends" => JSON::Schema::ExtendsAttribute
        }
        @uri = URI.parse("http://json-schema.org/draft-01/schema#")
      end
      
      JSON::Validator.register_validator(self.new)
    end
    
  end
end

Version data entries

54 entries across 54 versions & 3 rubygems

Version Path
json-schema-2.2.5 lib/json-schema/validators/draft1.rb
json-schema-pvdgm-2.3.1 lib/json-schema/validators/draft1.rb
json-schema-2.2.4 lib/json-schema/validators/draft1.rb
json-schema-2.2.3 lib/json-schema/validators/draft1.rb
json-schema-2.2.2 lib/json-schema/validators/draft1.rb
json-schema-2.2.1 lib/json-schema/validators/draft1.rb
json-schema-1.2.1 lib/json-schema/validators/draft1.rb
json-schema-2.2.0 lib/json-schema/validators/draft1.rb
json-schema-1.2.0 lib/json-schema/validators/draft1.rb
json-schema-2.1.9 lib/json-schema/validators/draft1.rb
json-schema-2.1.8 lib/json-schema/validators/draft1.rb
json-schema-2.1.7 lib/json-schema/validators/draft1.rb
json-schema-2.1.6 lib/json-schema/validators/draft1.rb
json-schema-2.1.5 lib/json-schema/validators/draft1.rb
json-schema-2.1.4 lib/json-schema/validators/draft1.rb
json-schema-2.1.3 lib/json-schema/validators/draft1.rb
json-schema-2.1.2 lib/json-schema/validators/draft1.rb
json-schema-2.1.1 lib/json-schema/validators/draft1.rb
json-schema-2.1.0 lib/json-schema/validators/draft1.rb
json-schema-2.0.5 lib/json-schema/validators/draft1.rb