Sha256: 768ae3cea8637f19444a1a04bdd71e9fd7244f4600e3921777cde5d8f4d78bd2
Contents?: true
Size: 502 Bytes
Versions: 6
Compression:
Stored size: 502 Bytes
Contents
# frozen_string_literal: true require_relative './operations' module Modern module DocGenerator class OpenAPI3 module Paths include Operations def _paths(descriptor) descriptor.routes_by_path.map do |path, routes_by_method| [ path, routes_by_method.map do |method, route| [method.downcase, _operation(route)] end.to_h ] end.to_h end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems