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-2.2.3 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-2.2.2 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-2.2.1 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-2.2.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-2.1.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-2.0.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser_firetail-1.0.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-1.0.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-1.0.0.beta1 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.15.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.14.1 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.14.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.13.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.12.1 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.12.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.11.2 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.11.1 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.11.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.10.0 lib/openapi_parser/concerns/parser/hash_body.rb
openapi_parser-0.9.0 lib/openapi_parser/concerns/parser/hash_body.rb