Sha256: a9cdc4216a230be60215d42244d20bde87d05c29b3f50d73b2d17b7f31c94877

Contents?: true

Size: 359 Bytes

Versions: 15

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

require 'oas_parser'

module OasParser
  class Path
    def servers
      raw['servers']
    end
  end

  class Endpoint
    def oauth?
      return false unless security

      security_schemes.each do |security_schema|
        return true if security_schema['bearerFormat'] == 'OAuth'
      end

      false
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nexmo-oas-renderer-2.7.2 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.7.1 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.7.0 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.6.0 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.5.0 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.4.1 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.4.0 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.3.0 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.2.0 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.1.3 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.1.2 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.1.1 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.1.0 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.0.1 lib/nexmo/oas/renderer/services/oas_parser.rb
nexmo-oas-renderer-2.0.0 lib/nexmo/oas/renderer/services/oas_parser.rb