Sha256: b56bf34f473a020d52a94e777480f4e35bc5117df8b6ed5c5ae30d0f004d276f
Contents?: true
Size: 589 Bytes
Versions: 11
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true 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.to_s.pluralize}/#{component_key}" } end def process; processed end def name; nil end end end end __END__ Reference Object Example { "$ref": "#/components/schemas/Pet" }
Version data entries
11 entries across 11 versions & 1 rubygems