class R2OAS::Schema::V3::TagSqueezer

Public Instance Methods

squeeze_docs() click to toggle source
# File lib/r2-oas/schema/v3/squeezer/tag_squeezer.rb, line 9
def squeeze_docs
  slice_tags_schema = @schema_data['tags'].each_with_object([]) do |tag, result|
    eql_tag_name = tag['name'].in? @tag_names
    result.push(tag) if eql_tag_name
  end
  { 'tags' => slice_tags_schema }
end