Class: Skooma::Objects::OpenAPI::Keywords::Components

Inherits:
JSONSkooma::Keywords::Base
  • Object
show all
Defined in:
lib/skooma/objects/openapi/keywords/components.rb

Instance Method Summary collapse

Instance Method Details

#each_schema(&block) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/skooma/objects/openapi/keywords/components.rb', line 12

def each_schema(&block)
  return super unless json.type == "object"

  json.each_value do |s|
    s.each_value(&block)
  end
end