Sha256: 481be6bfdc5b2e00e29d8ceb91ff1ff07e34fdc1fbcea9ea0809582d0b71d25f
Contents?: true
Size: 270 Bytes
Versions: 3
Compression:
Stored size: 270 Bytes
Contents
# frozen_string_literal: true class OAPI::Schema attr_reader :schema def initialize @schema = yield if block_given? end class << self def parse(json) ref = json[:$ref] return OAPI::Ref.new(ref) if ref new { json } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oapi-0.1.2 | lib/oapi/schema.rb |
oapi-0.1.1 | lib/oapi/schema.rb |
oapi-0.1.0 | lib/oapi/schema.rb |