Class: R2OAS::Schema::V3::FromFiles::Components::SchemaRef

Inherits:
BaseRef
  • Object
show all
Defined in:
lib/r2-oas/schema/v3/object/from_files/utils/refs.rb

Constant Summary collapse

READONLY_KEYS =
i[type path parent_schema_name depth tag_name verb http_status from].freeze
WRITABLE_KEYS =
[:schema_name].freeze
VALID_KEYS =
READONLY_KEYS + WRITABLE_KEYS

Instance Attribute Summary

Attributes inherited from BaseRef

#parent

Instance Method Summary collapse

Methods inherited from BaseRef

#[], #[]=, #pretty_print, #to_h

Constructor Details

#initialize(ref_or_data) ⇒ SchemaRef

Returns a new instance of SchemaRef.



106
107
108
# File 'lib/r2-oas/schema/v3/object/from_files/utils/refs.rb', line 106

def initialize(ref_or_data)
  build(ref_or_data, { type: :schema })
end