Sha256: 6e25bd5ac72b483aa0aec3da22c3984485b964389e1780069c0231253bfd4f70

Contents?: true

Size: 467 Bytes

Versions: 39

Compression:

Stored size: 467 Bytes

Contents

module OpenAPIParser::Parser::HashBody
  def _openapi_attr_hash_body_objects
    @_openapi_attr_hash_body_objects ||= {}
  end

  def openapi_attr_hash_body_objects(name, klass, options = {})
    # options[:reject_keys] = options[:reject_keys] ? options[:reject_keys].map(&:to_s) : []

    target_klass.send(:attr_reader, name)
    _openapi_attr_hash_body_objects[name] = ::OpenAPIParser::SchemaLoader::HashBodyLoader.new(name, options.merge(klass: klass))
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
openapi_parser-0.8.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.7.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.6.1 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.6.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.5.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.4.1 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.4.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.3.1 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.3.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.2.7 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.2.6 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.2.5 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.2.4 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.2.3 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.2.2 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.2.1 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.2.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.1.9 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.1.8 lib/openapi_parser/concerns/parser/hash_body.rb