Sha256: ea3a9f12fae7b03614c348f1cd425b9c989c3497faebd22bfa731d2bed6ad78e

Contents?: true

Size: 271 Bytes

Versions: 11

Compression:

Stored size: 271 Bytes

Contents

module RspecApiDocumentation
  module Writers
    class OpenApiJsonWriter < OpenApiWriter
      def write
        File.open(configuration.docs_dir.join("open_api.json"), "w") do |f|
          f.write JSON.pretty_generate(get_hash)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rspec_api_documentation-open_api-0.3 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.2.8 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.2.7 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.2.6 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.2.5 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.2.4 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.2.3 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.2.2 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.2.1 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.2.0 lib/rspec_api_documentation/writers/open_api_json_writer.rb
rspec_api_documentation-open_api-0.1.0 lib/rspec_api_documentation/writers/open_api_json_writer.rb