Sha256: 468638c3c8e2433f14f2c596820c158c2dd6f124dc1db8c3846990817cce0b5f
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true module SwaggerDocsGenerator # # Metadata generated # # Generate metadata for block tag in swagger specification # # @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#tagObject class MetadataTag < MetadataController def initialize super end # Create tag def construct_swagger_file array = [] controllers.each do |controller| file = File.join(path, "#{controller.controller_name}.json") array.push(JSON.parse(File.read(file))['tags']) if File.exist?(file) end { tags: array } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swagger_docs_generator-0.1.1 | lib/swagger_docs_generator/metadata/tag.rb |
swagger_docs_generator-0.1.0 | lib/swagger_docs_generator/metadata/tag.rb |