Module: OpenapiFirst::JsonRefs
- Defined in:
- lib/openapi_first/json_refs.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Loader, LocalRef Classes: Dereferencer
Class Method Summary collapse
Class Method Details
.dereference(doc) ⇒ Object
38 39 40 41 |
# File 'lib/openapi_first/json_refs.rb', line 38 def dereference(doc) file_cache = {} Dereferencer.new(Dir.pwd, doc, file_cache).call end |
.load(filename) ⇒ Object
43 44 45 46 47 48 |
# File 'lib/openapi_first/json_refs.rb', line 43 def load(filename) doc_dir = File.dirname(filename) doc = Loader.handle(filename) file_cache = {} Dereferencer.new(filename, doc_dir, doc, file_cache).call end |