Sha256: f511b33ffbeed786e40aacfc89501167c1ae19fc494215fc351d208c034bf2b4

Contents?: true

Size: 426 Bytes

Versions: 41

Compression:

Stored size: 426 Bytes

Contents

# data type values loader
class OpenAPIParser::SchemaLoader::ValuesLoader < OpenAPIParser::SchemaLoader::Base
  # @param [OpenAPIParser::Schemas::Base] target_object
  # @param [Hash] raw_schema
  # @return [Array<OpenAPIParser::Schemas::Base>, nil]
  def load_data(target_object, raw_schema)
    variable_set(target_object, variable_name, raw_schema[schema_key.to_s])
    nil # this loader not return schema object
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
openapi_parser-0.1.6 lib/openapi_parser/concerns/schema_loader/values_loader.rb