Sha256: cd0474c3470373ef5a4244b30b032f41b880a2b3fe09465636ded0cb2fa6ff57

Contents?: true

Size: 459 Bytes

Versions: 14

Compression:

Stored size: 459 Bytes

Contents

def schema_as_ruby_object
  {
    "type" => "object",
    "name" => "numbers",
    "properties" => {
      "numbers" => {
        "type"  => "array",
        "items" => {
          "type"    => "number",
          "minimum" => 1,
          "maximum" => 100
        },
        "id" => {
          "type"     => "number",
          "readonly" => true
        },
        "additionalProperties" => false
      }
    },
    "additionalProperties" => false
  }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
json_schema_tools-0.4.0 spec/test_helpers.rb
json_schema_tools-0.3.3 spec/test_helpers.rb
json_schema_tools-0.3.2 spec/test_helpers.rb
json_schema_tools-0.3.1 spec/test_helpers.rb
json_schema_tools-0.3.0 spec/test_helpers.rb
json_schema_tools-0.2.6 spec/test_helpers.rb
json_schema_tools-0.2.5 spec/test_helpers.rb
json_schema_tools-0.2.4 spec/test_helpers.rb
json_schema_tools-0.2.3 spec/test_helpers.rb
json_schema_tools-0.2.2 spec/test_helpers.rb
json_schema_tools-0.2.1 spec/test_helpers.rb
json_schema_tools-0.2.0 spec/test_helpers.rb
json_schema_tools-0.1.2 spec/test_helpers.rb
json_schema_tools-0.1.1 spec/test_helpers.rb