Sha256: ee6558dafec26cb5248c6ea89f92c11d9bffbe9ceeacd39d6baa67905bb83c5f
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
require 'oas_objs/media_type_obj' require 'oas_objs/helpers' module OpenApi module DSL # https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.0.md#referenceObject class RefObj < Hash include Helpers attr_accessor :processed def initialize(ref_to, component_key) self.processed = { '$ref': "#components/#{ref_to}s/#{component_key}" } end def process; processed; end end end end __END__ Reference Object Example { "$ref": "#/components/schemas/Pet" }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zero-rails_openapi-1.1.1 | lib/oas_objs/ref_obj.rb |
zero-rails_openapi-1.1.0 | lib/oas_objs/ref_obj.rb |
zero-rails_openapi-1.0.0 | lib/oas_objs/ref_obj.rb |