Sha256: 66e50e0dc54339f9e02e59d707195a460bc3aa9ffc3a32cb7c3bf115bf034270

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

require "json/generator/basic_attribute"
require "json/generator/empty_attribute"
require "json/generator/string_attribute"
require "json/generator/integer_attribute"
require "json/generator/array_attribute"
require "json/generator/object_attribute"
require "json/generator/boolean_attribute"
require "json/generator/attribute_factory"
require "json/generator/dereferencer"

module JSON
  module Generator
    def self.generate(schema)
      dereferenced_schema = Dereferencer.dereference(schema)
      AttributeFactory.create(dereferenced_schema).generate
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
contracts_api_test-0.0.1 lib/json/generator.rb